diff --git a/reference/classobj/functions/get-object-vars.xml b/reference/classobj/functions/get-object-vars.xml index ac18b4298a..479d3c8f50 100644 --- a/reference/classobj/functions/get-object-vars.xml +++ b/reference/classobj/functions/get-object-vars.xml @@ -1,5 +1,5 @@ - + @@ -14,10 +14,18 @@ This function returns an associative array of defined object properties - for the specified object obj. If variables - declared in the class of which the obj is an - instance, have not been assigned a value, those will not be returned - in the array. + for the specified object obj. + + + + In versions prior to PHP 4.2.0, if the variables declared in the class + of which the obj is an instance, have not been + assigned a value, those will not be returned in the array. In versions + after PHP 4.2.0, the key will be assigned with a NULL + value. + + + Use of <function>get_object_vars</function> @@ -61,6 +69,7 @@ print_r(get_object_vars($p1)); ( [x] => 1.233 [y] => 3.445 + [label] => ) Array