didou Fri Feb 6 12:39:57 2004 EDT
Modified files:
/phpdoc/en/reference/simplexml reference.xml
Log:
a missing word + some CS (no, I'm not an addict)
http://cvs.php.net/diff.php/phpdoc/en/reference/simplexml/reference.xml?r1=1.6&r2=1.7&ty=u
Index: phpdoc/en/reference/simplexml/reference.xml
diff -u phpdoc/en/reference/simplexml/reference.xml:1.6
phpdoc/en/reference/simplexml/reference.xml:1.7
--- phpdoc/en/reference/simplexml/reference.xml:1.6 Fri Jan 30 18:38:05 2004
+++ phpdoc/en/reference/simplexml/reference.xml Fri Feb 6 12:39:57 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
<reference id="ref.simplexml">
<title>SimpleXML functions</title>
<titleabbrev>SimpleXML</titleabbrev>
@@ -100,8 +100,8 @@
$xml = simplexml_load_string($xmlstr);
/* For each <movie> node, we echo a separate <plot>. */
-foreach($xml->movie as $movie) {
- echo $movie->plot,'<br/>';
+foreach ($xml->movie as $movie) {
+ echo $movie->plot, '<br />';
}
?>
@@ -115,8 +115,8 @@
<simpara>
So far, we have only covered the work of reading element names
and their values. SimpleXML can also access element attributes.
- Access attributes of an element just as you would elements of
- an <type>array</type>.
+ Access attributes of an element just as you would access elements
+ of an <type>array</type>.
</simpara>
<programlisting role="php">
<![CDATA[
@@ -155,8 +155,8 @@
include 'example.php';
$xml = simplexml_load_string($xmlstr);
-foreach($xml->xpath('//character') as $character) {
- echo $character->name, 'played by ', $character->actor, '<br/>';
+foreach ($xml->xpath('//character') as $character) {
+ echo $character->name, 'played by ', $character->actor, '<br />';
}
?>
]]>