Get_object_vars () method Usage example in PHP, Phpget_object_vars
This paper analyzes the use of the Get_object_vars () method in PHP. Share to everyone for your reference. The specific analysis is as follows:
Syntax: Get_object_var ($object), returns an array. Gets the attributes in the $object object that make up an array
Instance:
<?phpclass person{Public $name = "Consort", public $age = +; public $birth;} $p = new Person ();p Rint_r (Get_object_vars ($p));? >
Output Result:
Array ([name] = Consort [age] [Birth] = [+]]
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/955406.html www.bkjia.com true http://www.bkjia.com/PHPjc/955406.html techarticle php get_object_vars () method Usage example, phpget_object_vars the use of Get_object_vars () method in PHP is analyzed in this paper. Share to everyone for your reference. The specific analysis is as follows: Language ...