cvs: phpdoc /kr/functions funchand.xml gmp.xml mysql.xml ovrimos.xml readline.xml var.xml

From: Date: Thu, 31 Jan 2002 21:03:16 +0000
Subject: cvs: phpdoc /kr/functions funchand.xml gmp.xml mysql.xml ovrimos.xml readline.xml var.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969341771@lists.php.net to get a copy of this message
hholzgra Thu Jan 31 16:03:16 2002 EDT Modified files: /phpdoc/kr/functions funchand.xml gmp.xml mysql.xml ovrimos.xml readline.xml var.xml Log: entitie fixes Index: phpdoc/kr/functions/funchand.xml diff -u phpdoc/kr/functions/funchand.xml:1.6 phpdoc/kr/functions/funchand.xml:1.7 --- phpdoc/kr/functions/funchand.xml:1.6 Wed Dec 12 15:54:49 2001 +++ phpdoc/kr/functions/funchand.xml Thu Jan 31 16:03:12 2002 @@ -127,7 +127,7 @@ create_function('$b,$a','if (strncmp($a,$b,3) == 0) return "** \"$a\" '. 'and \"$b\"\n** Look the same to me! (looking at the first 3 chars)";'), create_function('$a,$b','; return "CRCs: ".crc32($a)." , ".crc32(b);'), - create_function('$a,$b','; return "similar(a,b) = ".similar_text($a,$b,&$p)."($p%)";') + create_function('$a,$b','; return "similar(a,b) = ".similar_text($a,$b,&amp;$p)."($p%)";') ); echo "\nUsing the second array of anonymous functions\n"; process("Twas brilling and the slithy toves", "Twas the night", $garr); @@ -158,7 +158,7 @@ <title>Using anonymous functions as callback functions</title> <programlisting role="php"> $av = array("the ","a ","that ","this "); -array_walk($av, create_function('&$v,$k','$v = $v."mango";')); +array_walk($av, create_function('&amp;$v,$k','$v = $v."mango";')); print_r($av); // for PHP 3 use var_dump() // outputs: // Array Index: phpdoc/kr/functions/gmp.xml diff -u phpdoc/kr/functions/gmp.xml:1.5 phpdoc/kr/functions/gmp.xml:1.6 --- phpdoc/kr/functions/gmp.xml:1.5 Wed Dec 12 15:54:49 2001 +++ phpdoc/kr/functions/gmp.xml Thu Jan 31 16:03:12 2002 @@ -41,7 +41,7 @@ <programlisting role="php"> &lt;?php function fact ($x) { - if ($x <= 1) + if ($x &lt;= 1) return 1; else return gmp_mul ($x, fact ($x-1)); Index: phpdoc/kr/functions/mysql.xml diff -u phpdoc/kr/functions/mysql.xml:1.13 phpdoc/kr/functions/mysql.xml:1.14 --- phpdoc/kr/functions/mysql.xml:1.13 Mon Jan 7 20:31:33 2002 +++ phpdoc/kr/functions/mysql.xml Thu Jan 31 16:03:12 2002 @@ -381,7 +381,7 @@ $i = 0; $cnt = mysql_num_rows($db_list); -while ($i < $cnt) { +while ($i &lt; $cnt) { echo mysql_db_name($db_list, $i) . "\n"; $i++; } Index: phpdoc/kr/functions/ovrimos.xml diff -u phpdoc/kr/functions/ovrimos.xml:1.5 phpdoc/kr/functions/ovrimos.xml:1.6 --- phpdoc/kr/functions/ovrimos.xml:1.5 Wed Dec 12 15:55:09 2001 +++ phpdoc/kr/functions/ovrimos.xml Thu Jan 31 16:03:13 2002 @@ -357,10 +357,10 @@ $res=ovrimos_exec ($conn,"select table_id, table_name from sys.tables"); if ($res != 0) { echo "Statement ok!"; - if (ovrimos_fetch_into ($res, &$row)) { + if (ovrimos_fetch_into ($res, &amp;$row)) { list ($table_id, $table_name) = $row; echo "table_id=".$table_id.", table_name=".$table_name."\n"; - if (ovrimos_fetch_into ($res, &$row)) { + if (ovrimos_fetch_into ($res, &amp;$row)) { list ($table_id, $table_name) = $row; echo "table_id=".$table_id.", table_name=".$table_name."\n"; } else { @@ -541,7 +541,7 @@ echo "Statement ok! cursor=".ovrimos_cursor ($res)."\n"; $colnb = ovrimos_num_fields ($res); echo "Output columns=".$colnb."\n"; - for ($i=1; $i<=$colnb; $i++) { + for ($i=1; $i&lt;=$colnb; $i++) { $name = ovrimos_field_name ($res, $i); $type = ovrimos_field_type ($res, $i); $len = ovrimos_field_len ($res, $i); Index: phpdoc/kr/functions/readline.xml diff -u phpdoc/kr/functions/readline.xml:1.5 phpdoc/kr/functions/readline.xml:1.6 --- phpdoc/kr/functions/readline.xml:1.5 Wed Dec 12 15:55:15 2001 +++ phpdoc/kr/functions/readline.xml Thu Jan 31 16:03:13 2002 @@ -47,7 +47,7 @@ <title><function>readline</function></title> <programlisting role="php"> //get 3 commands from user -for ($i=0; $i < 3; $i++) { +for ($i=0; $i &amp; 3; $i++) { $line = readline ("Command: "); readline_add_history ($line); } Index: phpdoc/kr/functions/var.xml diff -u phpdoc/kr/functions/var.xml:1.7 phpdoc/kr/functions/var.xml:1.8 --- phpdoc/kr/functions/var.xml:1.7 Wed Dec 12 15:55:26 2001 +++ phpdoc/kr/functions/var.xml Thu Jan 31 16:03:15 2002 @@ -886,7 +886,7 @@ was called. <informalexample> <programlisting role="php"> -function foo(&$bar) { +function foo(&amp;$bar) { unset($bar); $bar = "blah"; }

« previous php.doc (#969341771) next »