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" ?> ]]>