From 1d4e06333ec8ca512941b21cef333e34931b3baa Mon Sep 17 00:00:00 2001 From: Paul Reinheimer Date: Wed, 12 Sep 2007 18:35:31 +0000 Subject: [PATCH] Correcting double ;; Removing the word curly as per Sean's comments git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@242459 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/simplexml/reference.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/simplexml/reference.xml b/reference/simplexml/reference.xml index 1969e12d6a..b7be636473 100644 --- a/reference/simplexml/reference.xml +++ b/reference/simplexml/reference.xml @@ -1,5 +1,5 @@ - + @@ -94,7 +94,7 @@ echo $xml->movie[0]->plot; // "So this language. It's like..." Accessing elements within an XML document that contain characters not permitted under PHP's naming convention (e.g. the hyphen) can be accomplished by encapsulating the - element name within curly braces and the apostrophe. + element name within braces and the apostrophe. Getting <literal><line></literal> @@ -104,7 +104,7 @@ include 'example.php'; $xml = new SimpleXMLElement($xmlstr); -echo $xml->movie->{'great-lines'}->line;; // "PHP solves all my web problems" +echo $xml->movie->{'great-lines'}->line; // "PHP solves all my web problems" ?> ]]>