mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Typo fixes
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@55532 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
fa620da371
commit
65f1991d61
1 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.22 $ -->
|
||||
<!-- $Revision: 1.23 $ -->
|
||||
<chapter id="language.oop">
|
||||
<title>Classes and Objects</title>
|
||||
|
||||
|
@ -161,7 +161,7 @@ $cart->items = array("10" => 1);
|
|||
$cart->$items = array("10" => 1);
|
||||
|
||||
// correct, but may or may not be what was intended:
|
||||
// $cart->$myvar becomes $ncart->items
|
||||
// $cart->$myvar becomes $cart->items
|
||||
$myvar = 'items';
|
||||
$cart->$myvar = array("10" => 1);
|
||||
</programlisting>
|
||||
|
@ -190,7 +190,7 @@ $cart->$myvar = array("10" => 1);
|
|||
to another existing class. In fact, it is good practice to
|
||||
define a generic class which can be used in all your
|
||||
projects and adapt this class for the needs of each of your
|
||||
specific projects. To facilitate this, Classes can be
|
||||
specific projects. To facilitate this, classes can be
|
||||
extensions of other classes. The extended or derived class
|
||||
has all variables and functions of the base class (this is
|
||||
called 'inheritance' despite the fact that nobody died) and what
|
||||
|
@ -407,7 +407,7 @@ $b = new B;
|
|||
|
||||
<para>
|
||||
Destructors are functions that are called automatically
|
||||
when a variable is destroyed, either with <function>unset</function>
|
||||
when an object is destroyed, either with <function>unset</function>
|
||||
or by simply going out of scope. There are no destructors
|
||||
in PHP.
|
||||
</para>
|
||||
|
|
Loading…
Reference in a new issue