torben Wed Jun 18 14:19:07 2003 EDT Modified files: /phpdoc/en/language types.xml Log: Fixed a couple more typos. Fixed one bad example. Index: phpdoc/en/language/types.xml diff -u phpdoc/en/language/types.xml:1.116 phpdoc/en/language/types.xml:1.117 --- phpdoc/en/language/types.xml:1.116 Wed Jun 18 13:59:25 2003 +++ phpdoc/en/language/types.xml Wed Jun 18 14:19:07 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.116 $ --> +<!-- $Revision: 1.117 $ --> <chapter id="language.types"> <title>Types</title> @@ -1862,7 +1862,7 @@ <![CDATA[ // fill an array with all items from a directory $handle = opendir('.'); -while ($file = readdir($handle)) { +while (false !== ($file = readdir($handle))) { $files[] = $file; } closedir($handle); @@ -1872,7 +1872,7 @@ </example> <para> Arrays are ordered. You can also change the order using various - sorting-functions. See the <link linkend="ref.array">array + sorting functions. See the <link linkend="ref.array">array functions</link> section for more information. You can count the number of items in an array using the <function>count</function> function. @@ -1927,7 +1927,7 @@ </programlisting> </example> <para> - You should be aware, that array assignment always involves + You should be aware that array assignment always involves value copying. You need to use the reference operator to copy an array by reference. <informalexample> @@ -1937,7 +1937,7 @@ $arr1 = array(2, 3); $arr2 = $arr1; $arr2[] = 4; // $arr2 is changed, - // $arr1 is still array(2,3) + // $arr1 is still array(2, 3) $arr3 = &$arr1; $arr3[] = 4; // now $arr1 and $arr3 are the same
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php