philip          Mon Dec  3 13:34:32 2001 EDT

  Modified files:              
    /phpdoc/en/functions        funchand.xml 
  Log:
  Fix typos
  
  
Index: phpdoc/en/functions/funchand.xml
diff -u phpdoc/en/functions/funchand.xml:1.20 phpdoc/en/functions/funchand.xml:1.21
--- phpdoc/en/functions/funchand.xml:1.20       Sat Nov 17 22:07:18 2001
+++ phpdoc/en/functions/funchand.xml    Mon Dec  3 13:34:32 2001
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.20 $ -->
+<!-- $Revision: 1.21 $ -->
  <reference id="ref.funchand">
   <title>Function Handling functions</title>
   <titleabbrev>Functions</titleabbrev>
@@ -184,7 +184,7 @@
 // create a bunch of math functions
 $f1 = 'if ($a >=0) {return "b*a^2 = ".$b*sqrt($a);} else {return false;}';
 $f2 = "return \"min(b^2+a, a^2,b) = \".min(\$a*\$a+\$b,\$b*\$b+\$a);";
-$f3 = 'if ($a > 0 &amp;&amp; $b != 0) {return "ln(a)/b = ".log($a)/$b;} else {return 
false;}';
+$f3 = 'if ($a > 0 && $b != 0) {return "ln(a)/b = ".log($a)/$b; } else { return false; 
+}';
 $farr = array(
     create_function('$x,$y', 'return "some trig: ".(sin($x) + $x*cos($y));'),
     create_function('$x,$y', 'return "a hypotenuse: ".sqrt($x*$x + $y*$y);'),
@@ -202,7 +202,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,&amp;$p)."($p%)";')
+    create_function('$a,$b','; return "similar(a,b) = 
+".similar_text($a,$b,&$p)."($p%)";')
     );
 echo "\nUsing the second array of anonymous functions\n";
 process("Twas brilling and the slithy toves", "Twas the night", $garr);
@@ -237,7 +237,7 @@
      <programlisting role="php">
 <![CDATA[
 $av = array("the ","a ","that ","this ");
-array_walk($av, create_function('&amp;$v,$k','$v = $v."mango";'));
+array_walk($av, create_function('&$v,$k','$v = $v."mango";'));
 print_r($av);  // for PHP 3 use var_dump()
 // outputs:
 // Array


Reply via email to