From 571de1018d56fd1ed065874ed8ca04036fde06be Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Mon, 3 Dec 2001 18:34:32 +0000 Subject: [PATCH] Fix typos git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@63799 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/funchand.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/functions/funchand.xml b/functions/funchand.xml index 44b50d449d..aae0900db1 100755 --- a/functions/funchand.xml +++ b/functions/funchand.xml @@ -1,5 +1,5 @@ - + Function Handling functions Functions @@ -184,7 +184,7 @@ function process($var1, $var2, $farr) { // 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 && $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 @@ $garr = array( 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,&$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 @@ similar(a,b) = 11(45.833333333333%)