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:
Hannes Magnusson 2012-01-26 15:32:15 +00:00
parent 7885b223b0
commit cbc44b26f3

View file

@ -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();