mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Added the names of the respective tokens to access properties (thank hakre for the suggestion)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328167 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
af5f871724
commit
0b37eb99ef
1 changed files with 7 additions and 7 deletions
|
@ -40,13 +40,13 @@
|
|||
as if it had been declared as <literal>public</literal>.
|
||||
</para>
|
||||
</note>
|
||||
<para>
|
||||
Within class methods non-static properties may be accessed by using the form
|
||||
<varname>$this->property</varname> (where <literal>property</literal>
|
||||
is the name of the property). Static properties are accessed by using the
|
||||
form <varname>self::$property</varname>.
|
||||
See <link linkend="language.oop5.static">Static Keyword</link> for more information
|
||||
on the difference between static and non-static properties.
|
||||
<para>
|
||||
Within class methods non-static properties may be accessed by using
|
||||
<literal>-></literal> (Object Operator): <varname>$this->property</varname>
|
||||
(where <literal>property</literal> is the name of the property).
|
||||
Static properties are accessed by using the <literal>::</literal> (Double Colon):
|
||||
<varname>self::$property</varname>. See <link linkend="language.oop5.static">Static Keyword</link>
|
||||
for more information on the difference between static and non-static properties.
|
||||
</para>
|
||||
<para>
|
||||
The pseudo-variable <varname>$this</varname> is available inside
|
||||
|
|
Loading…
Reference in a new issue