ObjectsObject InitializationTo create a new object, use the new statement to instantiate a class:
<?php For a full discussion, see the Classes and Objects chapter. Converting to object
If an object is converted to an object, it is not
modified. If a value of any other type is converted to an
object, a new instance of the stdClass
built-in class is created. If the value was
<?php For any other value, a member variable named scalar will contain the value.
<?php |