didou Mon Dec 15 11:47:07 2003 EDT
Modified files: /phpdoc/en/reference/array/functions array-chunk.xml array-combine.xml array-intersect-assoc.xml array-rand.xml array-reverse.xml array-slice.xml array-sum.xml array-udiff-assoc.xml array-udiff-uassoc.xml array-udiff.xml array-unique.xml array-values.xml array-walk.xml count.xml each.xml end.xml extract.xml in-array.xml key.xml list.xml range.xml reset.xml sort.xml usort.xml /phpdoc/en/reference/aspell/functions aspell-suggest.xml /phpdoc/en/reference/bc/functions bcpowmod.xml /phpdoc/en/reference/bzip2 reference.xml /phpdoc/en/reference/bzip2/functions bzdecompress.xml Log: Merry XHTML and CS compliant christmas all \!
Index: phpdoc/en/reference/array/functions/array-chunk.xml diff -u phpdoc/en/reference/array/functions/array-chunk.xml:1.8 phpdoc/en/reference/array/functions/array-chunk.xml:1.9 --- phpdoc/en/reference/array/functions/array-chunk.xml:1.8 Mon Jun 16 08:03:39 2003 +++ phpdoc/en/reference/array/functions/array-chunk.xml Mon Dec 15 11:47:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 --> <refentry id="function.array-chunk"> <refnamediv> @@ -36,7 +36,7 @@ <?php $input_array = array('a', 'b', 'c', 'd', 'e'); print_r(array_chunk($input_array, 2)); -print_r(array_chunk($input_array, 2, TRUE)); +print_r(array_chunk($input_array, 2, true)); ?> ]]> </programlisting> Index: phpdoc/en/reference/array/functions/array-combine.xml diff -u phpdoc/en/reference/array/functions/array-combine.xml:1.4 phpdoc/en/reference/array/functions/array-combine.xml:1.5 --- phpdoc/en/reference/array/functions/array-combine.xml:1.4 Sun Aug 17 08:21:03 2003 +++ phpdoc/en/reference/array/functions/array-combine.xml Mon Dec 15 11:47:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="function.array-combine"> <refnamediv> <refname>array_combine</refname> @@ -34,18 +34,22 @@ $c = array_combine($a, $b); print_r($c); - -/* Outputs: +?> +]]> + </programlisting> + <para> + Outputs: + </para> + <screen> +<![CDATA[ Array ( [green] => avocado [red] => apple [yellow] => banana ) -*/ -?> ]]> - </programlisting> + </screen> </example> </para> <para> Index: phpdoc/en/reference/array/functions/array-intersect-assoc.xml diff -u phpdoc/en/reference/array/functions/array-intersect-assoc.xml:1.4 phpdoc/en/reference/array/functions/array-intersect-assoc.xml:1.5 --- phpdoc/en/reference/array/functions/array-intersect-assoc.xml:1.4 Fri Sep 19 00:33:56 2003 +++ phpdoc/en/reference/array/functions/array-intersect-assoc.xml Mon Dec 15 11:47:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="function.array-intersect-assoc"> <refnamediv> <refname>array_intersect_assoc</refname> @@ -28,18 +28,20 @@ $array1 = array("a" => "green", "b" => "brown", "c" => "blue", "red"); $array2 = array("a" => "green", "yellow", "red"); $result_array = array_intersect_assoc($array1, $array2); - -/* $result_array will look like: - +?> +]]> + </programlisting> + <para> + $result_array will look like: + </para> + <screen> +<![CDATA[ Array ( [a] => green ) - -*/ -?> ]]> - </programlisting> + </screen> </example> </para> <simpara> Index: phpdoc/en/reference/array/functions/array-rand.xml diff -u phpdoc/en/reference/array/functions/array-rand.xml:1.8 phpdoc/en/reference/array/functions/array-rand.xml:1.9 --- phpdoc/en/reference/array/functions/array-rand.xml:1.8 Sun Aug 17 08:21:03 2003 +++ phpdoc/en/reference/array/functions/array-rand.xml Mon Dec 15 11:47:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.13 --> <refentry id="function.array-rand"> <refnamediv> @@ -40,8 +40,8 @@ srand((float) microtime() * 10000000); $input = array("Neo", "Morpheus", "Trinity", "Cypher", "Tank"); $rand_keys = array_rand($input, 2); -print $input[$rand_keys[0]] . "\n"; -print $input[$rand_keys[1]] . "\n"; +echo $input[$rand_keys[0]] . "\n"; +echo $input[$rand_keys[1]] . "\n"; ?> ]]> </programlisting> Index: phpdoc/en/reference/array/functions/array-reverse.xml diff -u phpdoc/en/reference/array/functions/array-reverse.xml:1.8 phpdoc/en/reference/array/functions/array-reverse.xml:1.9 --- phpdoc/en/reference/array/functions/array-reverse.xml:1.8 Sun Aug 17 08:21:03 2003 +++ phpdoc/en/reference/array/functions/array-reverse.xml Mon Dec 15 11:47:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.62 --> <refentry id="function.array-reverse"> <refnamediv> @@ -29,7 +29,7 @@ <?php $input = array("php", 4.0, array("green", "red")); $result = array_reverse($input); -$result_keyed = array_reverse($input, TRUE); +$result_keyed = array_reverse($input, true); ?> ]]> </programlisting> Index: phpdoc/en/reference/array/functions/array-slice.xml diff -u phpdoc/en/reference/array/functions/array-slice.xml:1.7 phpdoc/en/reference/array/functions/array-slice.xml:1.8 --- phpdoc/en/reference/array/functions/array-slice.xml:1.7 Sun Aug 17 08:21:03 2003 +++ phpdoc/en/reference/array/functions/array-slice.xml Mon Dec 15 11:47:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 --> <refentry id="function.array-slice"> <refnamediv> @@ -48,7 +48,7 @@ <programlisting role="php"> <![CDATA[ <?php -$input = array ("a", "b", "c", "d", "e"); +$input = array("a", "b", "c", "d", "e"); $output = array_slice($input, 2); // returns "c", "d", and "e" $output = array_slice($input, 2, -1); // returns "c", "d" Index: phpdoc/en/reference/array/functions/array-sum.xml diff -u phpdoc/en/reference/array/functions/array-sum.xml:1.7 phpdoc/en/reference/array/functions/array-sum.xml:1.8 --- phpdoc/en/reference/array/functions/array-sum.xml:1.7 Mon Jun 16 08:03:39 2003 +++ phpdoc/en/reference/array/functions/array-sum.xml Mon Dec 15 11:47:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.59 --> <refentry id="function.array-sum"> <refnamediv> @@ -25,10 +25,10 @@ <![CDATA[ <?php $a = array(2, 4, 6, 8); -echo "sum(a) = ".array_sum($a)."\n"; +echo "sum(a) = " . array_sum($a) . "\n"; -$b = array("a"=>1.2,"b"=>2.3,"c"=>3.4); -echo "sum(b) = ".array_sum($b)."\n"; +$b = array("a" => 1.2, "b" => 2.3, "c" => 3.4); +echo "sum(b) = " . array_sum($b) . "\n"; ?> ]]> </programlisting> Index: phpdoc/en/reference/array/functions/array-udiff-assoc.xml diff -u phpdoc/en/reference/array/functions/array-udiff-assoc.xml:1.3 phpdoc/en/reference/array/functions/array-udiff-assoc.xml:1.4 --- phpdoc/en/reference/array/functions/array-udiff-assoc.xml:1.3 Thu Dec 11 10:41:53 2003 +++ phpdoc/en/reference/array/functions/array-udiff-assoc.xml Mon Dec 15 11:47:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.14 --> <refentry id="function.array-udiff-assoc"> <refnamediv> @@ -43,7 +43,7 @@ } } $a = array("0.1" => new cr(9), "0.5" => new cr(12), 0 => new cr(23), 1=> new cr(4), 2 => new cr(-15),); -$b = array("0.2" => new cr(9), "0.5" => new cr(22), 0 => new cr( 3), 1=> new cr(4), 2 => new cr(-15),); +$b = array("0.2" => new cr(9), "0.5" => new cr(22), 0 => new cr(3), 1=> new cr(4), 2 => new cr(-15),); $result = array_udiff_assoc($a, $b, array("cr", "comp_func_cr")); print_r($result); Index: phpdoc/en/reference/array/functions/array-udiff-uassoc.xml diff -u phpdoc/en/reference/array/functions/array-udiff-uassoc.xml:1.6 phpdoc/en/reference/array/functions/array-udiff-uassoc.xml:1.7 --- phpdoc/en/reference/array/functions/array-udiff-uassoc.xml:1.6 Thu Dec 11 10:41:53 2003 +++ phpdoc/en/reference/array/functions/array-udiff-uassoc.xml Mon Dec 15 11:47:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.14 --> <refentry id="function.array-udiff-uassoc"> <refnamediv> @@ -52,9 +52,9 @@ } } $a = array("0.1" => new cr(9), "0.5" => new cr(12), 0 => new cr(23), 1=> new cr(4), 2 => new cr(-15),); -$b = array("0.2" => new cr(9), "0.5" => new cr(22), 0 => new cr( 3), 1=> new cr(4), 2 => new cr(-15),); +$b = array("0.2" => new cr(9), "0.5" => new cr(22), 0 => new cr(3), 1=> new cr(4), 2 => new cr(-15),); -$result = array_udiff_uassoc($a, $b, array("cr", "comp_func_cr"), array("cr","comp_func_key")); +$result = array_udiff_uassoc($a, $b, array("cr", "comp_func_cr"), array("cr", "comp_func_key")); print_r($result); ?> ]]> Index: phpdoc/en/reference/array/functions/array-udiff.xml diff -u phpdoc/en/reference/array/functions/array-udiff.xml:1.3 phpdoc/en/reference/array/functions/array-udiff.xml:1.4 --- phpdoc/en/reference/array/functions/array-udiff.xml:1.3 Thu Dec 11 10:41:53 2003 +++ phpdoc/en/reference/array/functions/array-udiff.xml Mon Dec 15 11:47:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.14 --> <refentry id="function.array-udiff"> <refnamediv> @@ -44,7 +44,7 @@ } } $a = array("0.1" => new cr(9), "0.5" => new cr(12), 0 => new cr(23), 1=> new cr(4), 2 => new cr(-15),); -$b = array("0.2" => new cr(9), "0.5" => new cr(22), 0 => new cr( 3), 1=> new cr(4), 2 => new cr(-15),); +$b = array("0.2" => new cr(9), "0.5" => new cr(22), 0 => new cr(3), 1=> new cr(4), 2 => new cr(-15),); $result = array_udiff($a, $b, array("cr", "comp_func_cr")); print_r($result); Index: phpdoc/en/reference/array/functions/array-unique.xml diff -u phpdoc/en/reference/array/functions/array-unique.xml:1.12 phpdoc/en/reference/array/functions/array-unique.xml:1.13 --- phpdoc/en/reference/array/functions/array-unique.xml:1.12 Sun Aug 17 08:21:03 2003 +++ phpdoc/en/reference/array/functions/array-unique.xml Mon Dec 15 11:47:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> +<!-- $Revision: 1.13 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 --> <refentry id="function.array-unique"> <refnamediv> @@ -67,7 +67,7 @@ <programlisting role="php"> <![CDATA[ <?php -$input = array(4,"4","3",4,3,"3"); +$input = array(4, "4", "3", 4, 3, "3"); $result = array_unique($input); var_dump($result); ?> Index: phpdoc/en/reference/array/functions/array-values.xml diff -u phpdoc/en/reference/array/functions/array-values.xml:1.8 phpdoc/en/reference/array/functions/array-values.xml:1.9 --- phpdoc/en/reference/array/functions/array-values.xml:1.8 Sun Aug 17 08:21:03 2003 +++ phpdoc/en/reference/array/functions/array-values.xml Mon Dec 15 11:47:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 --> <refentry id="function.array-values"> <refnamediv> @@ -24,7 +24,7 @@ <![CDATA[ <?php $array = array("size" => "XL", "color" => "gold"); -print_r(array_values ($array)); +print_r(array_values($array)); ?> ]]> </programlisting> Index: phpdoc/en/reference/array/functions/array-walk.xml diff -u phpdoc/en/reference/array/functions/array-walk.xml:1.12 phpdoc/en/reference/array/functions/array-walk.xml:1.13 --- phpdoc/en/reference/array/functions/array-walk.xml:1.12 Sun Aug 17 08:21:03 2003 +++ phpdoc/en/reference/array/functions/array-walk.xml Mon Dec 15 11:47:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> +<!-- $Revision: 1.13 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 --> <refentry id="function.array-walk"> <refnamediv> @@ -82,7 +82,7 @@ } function test_print($item2, $key) { - echo "$key. $item2<br>\n"; + echo "$key. $item2<br />\n"; } echo "Before ...:\n"; Index: phpdoc/en/reference/array/functions/count.xml diff -u phpdoc/en/reference/array/functions/count.xml:1.9 phpdoc/en/reference/array/functions/count.xml:1.10 --- phpdoc/en/reference/array/functions/count.xml:1.9 Sun Aug 17 08:21:03 2003 +++ phpdoc/en/reference/array/functions/count.xml Mon Dec 15 11:47:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 --> <refentry id="function.count"> <refnamediv> @@ -81,10 +81,10 @@ <![CDATA[ <?php $food = array('fruits' => array('orange', 'banana', 'apple'), - 'veggie' => array('carrot', 'collard','pea')); + 'veggie' => array('carrot', 'collard', 'pea')); // recursive count -echo count($food,COUNT_RECURSIVE); // output 8 +echo count($food, COUNT_RECURSIVE); // output 8 // normal count echo count($food); // output 2 Index: phpdoc/en/reference/array/functions/each.xml diff -u phpdoc/en/reference/array/functions/each.xml:1.12 phpdoc/en/reference/array/functions/each.xml:1.13 --- phpdoc/en/reference/array/functions/each.xml:1.12 Sun Aug 17 08:21:03 2003 +++ phpdoc/en/reference/array/functions/each.xml Mon Dec 15 11:47:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> +<!-- $Revision: 1.13 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 --> <refentry id="function.each"> <refnamediv> @@ -103,17 +103,19 @@ while (list($key, $val) = each($fruit)) { echo "$key => $val\n"; } - -/* Outputs: - +?> +]]> + </programlisting> + <para> + Outputs: + </para> + <screen> +<![CDATA[ a => apple b => banana c => cranberry - -*/ -?> ]]> - </programlisting> + </screen> </example> </para> <para> Index: phpdoc/en/reference/array/functions/end.xml diff -u phpdoc/en/reference/array/functions/end.xml:1.8 phpdoc/en/reference/array/functions/end.xml:1.9 --- phpdoc/en/reference/array/functions/end.xml:1.8 Mon Aug 18 12:09:01 2003 +++ phpdoc/en/reference/array/functions/end.xml Mon Dec 15 11:47:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 --> <refentry id="function.end"> <refnamediv> @@ -28,7 +28,7 @@ $fruits = array('apple', 'banana', 'cranberry'); - print end($fruits); // cranberry + echo end($fruits); // cranberry ?> ]]> Index: phpdoc/en/reference/array/functions/extract.xml diff -u phpdoc/en/reference/array/functions/extract.xml:1.11 phpdoc/en/reference/array/functions/extract.xml:1.12 --- phpdoc/en/reference/array/functions/extract.xml:1.11 Sun Aug 17 08:21:03 2003 +++ phpdoc/en/reference/array/functions/extract.xml Mon Dec 15 11:47:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> +<!-- $Revision: 1.12 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 --> <refentry id="function.extract"> <refnamediv> @@ -168,7 +168,7 @@ "shape" => "sphere"); extract($var_array, EXTR_PREFIX_SAME, "wddx"); -print "$color, $size, $shape, $wddx_size\n"; +echo "$color, $size, $shape, $wddx_size\n"; ?> ]]> Index: phpdoc/en/reference/array/functions/in-array.xml diff -u phpdoc/en/reference/array/functions/in-array.xml:1.10 phpdoc/en/reference/array/functions/in-array.xml:1.11 --- phpdoc/en/reference/array/functions/in-array.xml:1.10 Sun Aug 17 08:21:03 2003 +++ phpdoc/en/reference/array/functions/in-array.xml Mon Dec 15 11:47:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> +<!-- $Revision: 1.11 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.56 --> <refentry id="function.in-array"> <refnamediv> @@ -45,10 +45,10 @@ <?php $os = array("Mac", "NT", "Irix", "Linux"); if (in_array("Irix", $os)) { - print "Got Irix"; + echo "Got Irix"; } if (in_array("mac", $os)) { - print "Got mac"; + echo "Got mac"; } ?> ]]> @@ -72,11 +72,11 @@ <?php $a = array('1.10', 12.4, 1.13); -if (in_array('12.4', $a, TRUE)) { +if (in_array('12.4', $a, true)) { echo "'12.4' found with strict check\n"; } -if (in_array(1.13, $a, TRUE)) { +if (in_array(1.13, $a, true)) { echo "1.13 found with strict check\n"; } ?> @@ -111,14 +111,18 @@ if (in_array('o', $a)) { echo "'o' was found\n"; } - -/* Outputs: - 'ph' was found - 'o' was found -*/ ?> ]]> </programlisting> + <para> + Outputs: + </para> + <screen> +<![CDATA[ + 'ph' was found + 'o' was found +]]> + </screen> </example> </para> <para> Index: phpdoc/en/reference/array/functions/key.xml diff -u phpdoc/en/reference/array/functions/key.xml:1.6 phpdoc/en/reference/array/functions/key.xml:1.7 --- phpdoc/en/reference/array/functions/key.xml:1.6 Sun Aug 17 08:21:03 2003 +++ phpdoc/en/reference/array/functions/key.xml Mon Dec 15 11:47:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 --> <refentry id="function.key"> <refnamediv> @@ -33,7 +33,7 @@ // key where value equals "apple" while ($fruit_name = current($array)) { if ($fruit_name == 'apple') { - echo key($array).'<br>'; + echo key($array).'<br />'; } next($array); } Index: phpdoc/en/reference/array/functions/list.xml diff -u phpdoc/en/reference/array/functions/list.xml:1.10 phpdoc/en/reference/array/functions/list.xml:1.11 --- phpdoc/en/reference/array/functions/list.xml:1.10 Mon Dec 8 08:52:40 2003 +++ phpdoc/en/reference/array/functions/list.xml Mon Dec 15 11:47:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> +<!-- $Revision: 1.11 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 --> <refentry id="function.list"> <refnamediv> @@ -36,15 +36,15 @@ // Listing all the variables list($drink, $color, $power) = $info; -print "$drink is $color and $power makes it special.\n"; +echo "$drink is $color and $power makes it special.\n"; // Listing some of them list($drink, , $power) = $info; -print "$drink has $power.\n"; +echo "$drink has $power.\n"; // Or let's skip to only the third one list( , , $power) = $info; -print "I need $power!\n"; +echo "I need $power!\n"; ?> ]]> @@ -64,7 +64,7 @@ <?php -$result = mysql_query("SELECT id, name, salary FROM employees",$conn); +$result = mysql_query("SELECT id, name, salary FROM employees", $conn); while (list($id, $name, $salary) = mysql_fetch_row($result)) { echo " <tr>\n" . " <td><a href=\"info.php?id=$id\">$name</a></td>\n" . Index: phpdoc/en/reference/array/functions/range.xml diff -u phpdoc/en/reference/array/functions/range.xml:1.11 phpdoc/en/reference/array/functions/range.xml:1.12 --- phpdoc/en/reference/array/functions/range.xml:1.11 Sun Aug 17 08:21:03 2003 +++ phpdoc/en/reference/array/functions/range.xml Mon Dec 15 11:47:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> +<!-- $Revision: 1.12 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 --> <refentry id="function.range"> <refnamediv> @@ -40,23 +40,23 @@ <![CDATA[ <?php // array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ,11, 12) -foreach(range(0, 12) as $number) { +foreach (range(0, 12) as $number) { echo $number; } // The step parameter was introduced in 5.0.0 // array(0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100) -foreach(range(0, 100, 10) as $number) { +foreach (range(0, 100, 10) as $number) { echo $number; } // Use of character sequences introduced in 4.1.0 // array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i'); -foreach(range('a', 'i') as $letter) { +foreach (range('a', 'i') as $letter) { echo $letter; } // array('c', 'b', 'a'); -foreach(range('c', 'a') as $letter) { +foreach (range('c', 'a') as $letter) { echo $letter; } ?> Index: phpdoc/en/reference/array/functions/reset.xml diff -u phpdoc/en/reference/array/functions/reset.xml:1.7 phpdoc/en/reference/array/functions/reset.xml:1.8 --- phpdoc/en/reference/array/functions/reset.xml:1.7 Sun Aug 17 08:16:16 2003 +++ phpdoc/en/reference/array/functions/reset.xml Mon Dec 15 11:47:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 --> <refentry id="function.reset"> <refnamediv> @@ -29,16 +29,16 @@ $array = array('step one', 'step two', 'step three', 'step four'); // by default, the pointer is on the first element -echo current($array)."<br>\n"; // step "one" +echo current($array)."<br />\n"; // step "one" // skip two steps next($array); next($array); -echo current($array)."<br>\n"; // "step three" +echo current($array)."<br />\n"; // "step three" // reset pointer, start again on step one reset($array); -echo current($array)."<br>\n"; // "step one" +echo current($array)."<br />\n"; // "step one" ?> ]]> Index: phpdoc/en/reference/array/functions/sort.xml diff -u phpdoc/en/reference/array/functions/sort.xml:1.7 phpdoc/en/reference/array/functions/sort.xml:1.8 --- phpdoc/en/reference/array/functions/sort.xml:1.7 Sun Aug 17 08:21:03 2003 +++ phpdoc/en/reference/array/functions/sort.xml Mon Dec 15 11:47:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 --> <refentry id="function.sort"> <refnamediv> @@ -28,7 +28,7 @@ sort($fruits); reset($fruits); while (list($key, $val) = each($fruits)) { - echo "fruits[".$key."] = ".$val."\n"; + echo "fruits[" . $key . "] = " . $val . "\n"; } ?> Index: phpdoc/en/reference/array/functions/usort.xml diff -u phpdoc/en/reference/array/functions/usort.xml:1.13 phpdoc/en/reference/array/functions/usort.xml:1.14 --- phpdoc/en/reference/array/functions/usort.xml:1.13 Sun Aug 17 08:21:03 2003 +++ phpdoc/en/reference/array/functions/usort.xml Mon Dec 15 11:47:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.13 $ --> +<!-- $Revision: 1.14 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 --> <refentry id="function.usort"> <refnamediv> @@ -88,7 +88,7 @@ <programlisting role="php"> <![CDATA[ <?php -function cmp ($a, $b) { +function cmp($a, $b) { return strcmp($a["fruit"], $b["fruit"]); } @@ -132,14 +132,12 @@ class TestObj { var $name; - function TestObj($name) - { + function TestObj($name) { $this->name = $name; } /* This is the static comparing function: */ - function cmp_obj($a, $b) - { + function cmp_obj($a, $b) { $al = strtolower($a->name); $bl = strtolower($b->name); if ($al == $bl) { @@ -156,7 +154,7 @@ usort($a, array("TestObj", "cmp_obj")); foreach ($a as $item) { - print $item->name . "\n"; + echo $item->name . "\n"; } ?> ]]> Index: phpdoc/en/reference/aspell/functions/aspell-suggest.xml diff -u phpdoc/en/reference/aspell/functions/aspell-suggest.xml:1.3 phpdoc/en/reference/aspell/functions/aspell-suggest.xml:1.4 --- phpdoc/en/reference/aspell/functions/aspell-suggest.xml:1.3 Wed Jul 16 13:07:16 2003 +++ phpdoc/en/reference/aspell/functions/aspell-suggest.xml Mon Dec 15 11:47:05 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/aspell.xml, last change in rev 1.2 --> <refentry id="function.aspell-suggest"> <refnamediv> @@ -30,7 +30,7 @@ $suggestions = aspell_suggest($aspell_link, "test"); foreach ($suggestions as $suggestion) { - echo "Possible spelling: $suggestion<br>\n"; + echo "Possible spelling: $suggestion<br />\n"; } } Index: phpdoc/en/reference/bc/functions/bcpowmod.xml diff -u phpdoc/en/reference/bc/functions/bcpowmod.xml:1.3 phpdoc/en/reference/bc/functions/bcpowmod.xml:1.4 --- phpdoc/en/reference/bc/functions/bcpowmod.xml:1.3 Mon Mar 31 14:39:31 2003 +++ phpdoc/en/reference/bc/functions/bcpowmod.xml Mon Dec 15 11:47:05 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="function.bcpowmod"> <refnamediv> <refname>bcpowmod</refname> @@ -31,11 +31,12 @@ <programlisting role="php"> <![CDATA[ <?php -$a = bcpowmod($x,$y,$mod); +$a = bcpowmod($x, $y, $mod); -$b = bcmod(bcpow($x,$y),$mod); +$b = bcmod(bcpow($x, $y), $mod); + +// $a and $b are equal to each other. -/* $a and $b are equal to each other. */ ?> ]]> </programlisting> Index: phpdoc/en/reference/bzip2/reference.xml diff -u phpdoc/en/reference/bzip2/reference.xml:1.4 phpdoc/en/reference/bzip2/reference.xml:1.5 --- phpdoc/en/reference/bzip2/reference.xml:1.4 Mon Nov 25 18:49:17 2002 +++ phpdoc/en/reference/bzip2/reference.xml Mon Dec 15 11:47:06 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <reference id="ref.bzip2"> <title>Bzip2 Compression Functions</title> <titleabbrev>Bzip2</titleabbrev> @@ -70,10 +70,10 @@ $bz = bzopen($filename, "r"); // read 10 characters -print bzread($bz, 10); +echo bzread($bz, 10); // output until end of the file (or the next 1024 char) and close it. -print bzread($bz); +echo bzread($bz); bzclose($bz); Index: phpdoc/en/reference/bzip2/functions/bzdecompress.xml diff -u phpdoc/en/reference/bzip2/functions/bzdecompress.xml:1.3 phpdoc/en/reference/bzip2/functions/bzdecompress.xml:1.4 --- phpdoc/en/reference/bzip2/functions/bzdecompress.xml:1.3 Mon Dec 8 08:52:41 2003 +++ phpdoc/en/reference/bzip2/functions/bzdecompress.xml Mon Dec 15 11:47:07 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/bzip2.xml, last change in rev 1.1 --> <refentry id="function.bzdecompress"> <refnamediv> @@ -34,12 +34,12 @@ echo "Compressed String: "; echo $bzstr; -echo "\n<br>\n"; +echo "\n<br />\n"; $str = bzdecompress($bzstr); echo "Decompressed String: "; echo $str; -echo "\n<br>\n"; +echo "\n<br />\n"; ?> ]]> </programlisting>