Searched refs:array_search (Results 1 – 16 of 16) sorted by relevance
/PHP-5.4/ext/standard/tests/array/ |
H A D | array_search1.phpt | 2 array_search() tests 8 var_dump(array_search(1)); 9 var_dump(array_search(1,1)); 10 var_dump(array_search("a",$a)); 11 var_dump(array_search("0",$a, true)); 12 var_dump(array_search("0",$a)); 13 var_dump(array_search(0,$a)); 14 var_dump(array_search(1,$a)); 15 var_dump(array_search("d",$a, true)); 16 var_dump(array_search("d",$a)); [all …]
|
H A D | array_search_errors.phpt | 2 Test array_search() function - error conditions 6 * Prototype : mixed array_search ( mixed $needle, array $haystack [, bool $strict] ) 11 echo "*** Testing error conditions of array_search() ***\n"; 13 var_dump( array_search() ); 15 /* unexpected no.of arguments in array_search() */ 17 var_dump( array_search(1, $var, 0, "test") ); 18 var_dump( array_search("test") ); 20 /* unexpected second argument in array_search() */ 22 var_dump( array_search("test", $var) ); 23 var_dump( array_search(1, 123) ); [all …]
|
H A D | array_search_variation3.phpt | 11 /* checking for sub-arrays with array_search() */ 12 echo "*** Testing sub-arrays with array_search() ***\n"; 20 var_dump( array_search("four", $sub_array) ); 22 var_dump( array_search(3, $sub_array[1]) ); 23 var_dump( array_search(array('','i'), $sub_array) ); 25 /* checking for objects in array_search() */ 26 echo "\n*** Testing objects with array_search() ***\n"; 36 var_dump( array_search("array_var", $array_search_obj) ); 38 var_dump( array_search("foo", $array_search_obj) ); 45 *** Testing sub-arrays with array_search() *** [all …]
|
H A D | array_search_variation4.phpt | 12 echo "*** Testing resource type with array_search() ***\n"; 23 var_dump( array_search($file_handle, $resources, true) ); 30 var_dump( array_search("Good", array(0,"hello")) ); 35 var_dump( array_search(0, array("this")) ); 37 var_dump( array_search(0, array("this")),TRUE ); 40 var_dump( array_search("this", array(0)) ); 42 var_dump( array_search("this", array(0), TRUE) ); 45 var_dump( array_search(FALSE, 53 var_dump( array_search('123abc', array(123)) ); 59 *** Testing resource type with array_search() *** [all …]
|
H A D | array_search.phpt | 2 Test array_search()/in_array() 13 var_dump(array_search(123, $arr1)); 15 var_dump(array_search('a', $arr1)); 16 var_dump(array_search('e', $arr4)); 17 var_dump(array_search('d', $arr4));
|
H A D | array_search_variation2.phpt | 2 Test array_search() function : usage variations - different haystack values 6 * Prototype : mixed array_search ( mixed $needle, array $haystack [, bool $strict] ) 11 /* Test array_search() with different possible haystack values */ 13 echo "*** Testing array_search() with different haystack values ***\n"; 35 $array_type on elements in $misc_array using array_search(); 42 var_dump( array_search($type,$misc_array ) ); 44 var_dump( array_search($type,$misc_array,true) ); 46 var_dump( array_search($type,$misc_array,false) ); 53 *** Testing array_search() with different haystack values ***
|
H A D | array_search_variation1.phpt | 2 Test array_search() function : usage variations - different needle values 6 * Prototype : mixed array_search ( mixed $needle, array $haystack [, bool $strict] ) 11 /* Test array_search() with different possible needle values */ 13 echo "*** Testing array_search() with different needle values ***\n"; 46 using array_search() */ 52 var_dump(array_search($compare,$array)); 54 var_dump(array_search($compare,$array,TRUE)); 56 var_dump(array_search($compare,$array,FALSE)); 64 *** Testing array_search() with different needle values ***
|
/PHP-5.4/ext/pcre/ |
H A D | upgrade-pcre.php | 86 $k = array_search('CVS', $dirorig); 90 $k = array_search('.svn', $dirorig);
|
/PHP-5.4/tests/lang/ |
H A D | bug19566.phpt | 7 var_dump(array_search('foo', $result));
|
/PHP-5.4/ext/standard/tests/network/ |
H A D | udgloop.phpt | 5 if (array_search("udg",stream_get_transports()) === false)
|
H A D | unixloop.phpt | 5 if (array_search("unix",stream_get_transports()) === false)
|
/PHP-5.4/ext/standard/tests/file/ |
H A D | bug60120.phpt | 63 $type = array_search($pipe, $pipes);
|
/PHP-5.4/ext/standard/ |
H A D | php_array.h | 53 PHP_FUNCTION(array_search);
|
H A D | array.c | 1256 PHP_FUNCTION(array_search) in PHP_FUNCTION() argument
|
H A D | basic_functions.c | 3293 PHP_FE(array_search, arginfo_array_search)
|
/PHP-5.4/ext/spl/tests/ |
H A D | observer_001.phpt | 48 $idx = array_search($observer, $this->observers);
|
Completed in 42 milliseconds