php crete empty class code example Example 1: php empty object Click to copy$x = new stdClass(); Example 2: php new stdClass object Click to copynew stdClass()