php make object with class code example
Example 1: object php
//object init
$object = (object) [
'propertyOne' => 'foo',
'propertyTwo' => 42,
];
Example 2: php object
$obj = [
"example1" => 1,
"example2" => "two",
"example3" => [
"example4": true
]
]