mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Wrong variable name, pointed out by Simon Harper
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@322827 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
7885b223b0
commit
cbc44b26f3
1 changed files with 2 additions and 2 deletions
|
@ -137,7 +137,7 @@ Mr. Coder played by El ActÓr
|
|||
</para>
|
||||
<note>
|
||||
<para>
|
||||
Properties (<literal>$xml->movie</literal> in previous example) are not
|
||||
Properties (<literal>$movies->movie</literal> in previous example) are not
|
||||
arrays. They are <link linkend="class.iterator">iterable</link> and
|
||||
<link linkend="class.arrayaccess">accessible</link> objects.
|
||||
</para>
|
||||
|
@ -340,7 +340,7 @@ $character = $movies->movie[0]->characters->addChild('character');
|
|||
$character->addChild('name', 'Mr. Parser');
|
||||
$character->addChild('actor', 'John Doe');
|
||||
|
||||
$rating = $xml->movie[0]->addChild('rating', 'PG');
|
||||
$rating = $movies->movie[0]->addChild('rating', 'PG');
|
||||
$rating->addAttribute('type', 'mpaa');
|
||||
|
||||
echo $movies->asXML();
|
||||
|
|
Loading…
Reference in a new issue