svn: /phpdoc/en/trunk/reference/simplexml/ examples.xml
| From: | Hannes Magnusson | Date: | Thu, 26 Jan 2012 15:32:15 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/simplexml/ examples.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9497@lists.php.net to get a copy of this message | ||
bjori Thu, 26 Jan 2012 15:32:15 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=322827
Log:
Wrong variable name, pointed out by Simon Harper
Changed paths:
U phpdoc/en/trunk/reference/simplexml/examples.xml
Modified: phpdoc/en/trunk/reference/simplexml/examples.xml
===================================================================
--- phpdoc/en/trunk/reference/simplexml/examples.xml 2012-01-26 15:27:31 UTC (rev 322826)
+++ phpdoc/en/trunk/reference/simplexml/examples.xml 2012-01-26 15:32:15 UTC (rev 322827)
@@ -137,7 +137,7 @@
</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->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();