how to declare empty object variable in php code example Example: php empty object $x = new stdClass();