mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Typos
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@60963 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
28b9bd171b
commit
d2e38f898d
1 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.28 $ -->
|
||||
<!-- $Revision: 1.29 $ -->
|
||||
<chapter id="language.oop">
|
||||
<title>Classes and Objects</title>
|
||||
|
||||
|
@ -169,13 +169,13 @@ $cart->$myvar = array("10" => 1);
|
|||
|
||||
<para>
|
||||
Within a class definition, you do not know under which name the object will
|
||||
be accessible in your program: At the time the Cart class was
|
||||
be accessible in your program: at the time the Cart class was
|
||||
written, it was unknown that the object will be named $cart or
|
||||
$another_cart later. Thus, you cannot write $cart->items within
|
||||
the Cart class itself. Instead, in order to be able to access it's own
|
||||
functions and variables from within a class, one can use the
|
||||
pseudo-variable $this which can be read as 'my own' or
|
||||
'current object'. Thus, '$this->items[$artnr] += $num' can
|
||||
'current object'. Thus, '$this->items[$artnr] += $num' can
|
||||
be read as 'add $num to the $artnr counter of my own items
|
||||
array' or 'add $num to the $artnr counter of the items array
|
||||
within the current object'.
|
||||
|
@ -675,7 +675,7 @@ page2.php:
|
|||
Conversely, <function>unserialize</function> checks for the
|
||||
presence of a function with the magic name
|
||||
<literal>__wakeup</literal>. If present, this function can
|
||||
reconstruct any ressources that object may have.
|
||||
reconstruct any resources that object may have.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
|
Loading…
Reference in a new issue