How To Create An Object And Put Another Object In php 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
]
]