summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/in_array_variation4.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/array/in_array_variation4.phpt')
-rw-r--r--ext/standard/tests/array/in_array_variation4.phpt10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/standard/tests/array/in_array_variation4.phpt b/ext/standard/tests/array/in_array_variation4.phpt
index eeebee978d..186eb2718d 100644
--- a/ext/standard/tests/array/in_array_variation4.phpt
+++ b/ext/standard/tests/array/in_array_variation4.phpt
@@ -4,7 +4,7 @@ Test in_array() function : usage variations - haystack as resource/multi dimensi
<?php
/*
* Prototype : bool in_array ( mixed $needle, array $haystack [, bool $strict] )
- * Description: Searches haystack for needle and returns TRUE
+ * Description: Searches haystack for needle and returns TRUE
* if it is found in the array, FALSE otherwise.
* Source Code: ext/standard/array.c
*/
@@ -31,7 +31,7 @@ var_dump( in_array((int)$dir_handle, $resources, true) );
echo "\n*** Testing miscelleneos inputs with in_array() ***\n";
//matching "Good" in array(0,"hello"), result:true in loose type check
var_dump( in_array("Good", array(0,"hello")) );
-//false in strict mode
+//false in strict mode
var_dump( in_array("Good", array(0,"hello"), TRUE) );
//matching integer 0 in array("this"), result:true in loose type check
@@ -45,8 +45,8 @@ var_dump( in_array("this", array(0)) );
var_dump( in_array("this", array(0), TRUE) );
//checking for type FALSE in multidimensional array with loose checking, result:false in loose type check
-var_dump( in_array(FALSE,
- array("a"=> TRUE, "b"=> TRUE,
+var_dump( in_array(FALSE,
+ array("a"=> TRUE, "b"=> TRUE,
array("c"=> TRUE, "d"=>TRUE)
)
)
@@ -54,7 +54,7 @@ var_dump( in_array(FALSE,
//matching string having integer in beginning, result:true in loose type check
var_dump( in_array('123abc', array(123)) );
-var_dump( in_array('123abc', array(123), TRUE) ); // false in strict mode
+var_dump( in_array('123abc', array(123), TRUE) ); // false in strict mode
echo "Done\n";
?>