Home
last modified time | relevance | path

Searched refs:array_search (Results 1 – 16 of 16) sorted by relevance

/PHP-5.4/ext/standard/tests/array/
H A Darray_search1.phpt2 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 Darray_search_errors.phpt2 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 Darray_search_variation3.phpt11 /* 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 Darray_search_variation4.phpt12 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 Darray_search.phpt2 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 Darray_search_variation2.phpt2 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 Darray_search_variation1.phpt2 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 Dupgrade-pcre.php86 $k = array_search('CVS', $dirorig);
90 $k = array_search('.svn', $dirorig);
/PHP-5.4/tests/lang/
H A Dbug19566.phpt7 var_dump(array_search('foo', $result));
/PHP-5.4/ext/standard/tests/network/
H A Dudgloop.phpt5 if (array_search("udg",stream_get_transports()) === false)
H A Dunixloop.phpt5 if (array_search("unix",stream_get_transports()) === false)
/PHP-5.4/ext/standard/tests/file/
H A Dbug60120.phpt63 $type = array_search($pipe, $pipes);
/PHP-5.4/ext/standard/
H A Dphp_array.h53 PHP_FUNCTION(array_search);
H A Darray.c1256 PHP_FUNCTION(array_search) in PHP_FUNCTION() argument
H A Dbasic_functions.c3293 PHP_FE(array_search, arginfo_array_search)
/PHP-5.4/ext/spl/tests/
H A Dobserver_001.phpt48 $idx = array_search($observer, $this->observers);

Completed in 42 milliseconds