You declare an object in PHP by using the ____________________ operator with a class constructor. code example
Example 1: declare variable in php class
<?php
class SimpleClass
{
public $var1 = 'hello';
}
?>
Example 2: php object
$obj = [
"example1" => 1,
"example2" => "two",
"example3" => [
"example4": true
]
]