mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fixed bug #45469 (get_object_vars($this) varies from what documentation says)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@262361 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
1d8bf7126e
commit
a72591107c
1 changed files with 16 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.12 $ -->
|
||||
<!-- $Revision: 1.13 $ -->
|
||||
<refentry xml:id="function.get-object-vars" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>get_object_vars</refname>
|
||||
|
@ -12,7 +12,8 @@
|
|||
<methodparam><type>object</type><parameter>object</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Gets the public properties of the given <parameter>object</parameter>.
|
||||
Gets the accessible non-static properties of the given
|
||||
<parameter>object</parameter> according to scope.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
|
@ -33,9 +34,9 @@
|
|||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns an associative array of defined object public properties for the
|
||||
specified <parameter>object</parameter>. If a property have not been
|
||||
assigned a value, it will be returned with a &null; value.
|
||||
Returns an associative array of defined object accessible non-static properties
|
||||
for the specified <parameter>object</parameter> in scope. If a property have
|
||||
not been assigned a value, it will be returned with a &null; value.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="changelog">
|
||||
|
@ -95,6 +96,16 @@ array(2) {
|
|||
["c"]=>
|
||||
NULL
|
||||
}
|
||||
array(4) {
|
||||
["a"]=>
|
||||
NULL
|
||||
["b"]=>
|
||||
int(1)
|
||||
["c"]=>
|
||||
NULL
|
||||
["d"]=>
|
||||
NULL
|
||||
}
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
|
|
Loading…
Reference in a new issue