define an object in php code example
Example 1: php define object
$x = new stdClass();
Example 2: php object
$obj = [
"example1" => 1,
"example2" => "two",
"example3" => [
"example4": true
]
]
$x = new stdClass();
$obj = [
"example1" => 1,
"example2" => "two",
"example3" => [
"example4": true
]
]