As of PHP 5.4, we can create stdClass objects with some properties and values using the more beautiful form:
<?php
$object = (object) [
'propertyOne' => 'foo',
'propertyTwo' => 42,
];
?>
As of PHP 5.4, we can create stdClass objects with some properties and values using the more beautiful form:
<?php
$object = (object) [
'propertyOne' => 'foo',
'propertyTwo' => 42,
];
?>