Home
last modified time | relevance | path

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

12

/PHP-8.2/ext/standard/tests/array/
H A Darray_search1.phpt2 array_search() tests
8 var_dump(array_search("a",$a));
9 var_dump(array_search("0",$a, true));
10 var_dump(array_search("0",$a));
11 var_dump(array_search(0,$a));
12 var_dump(array_search(1,$a));
13 var_dump(array_search("d",$a, true));
14 var_dump(array_search("d",$a));
15 var_dump(array_search(-1,$a, true));
H A Darray_search_variation3.phpt5 /* checking for sub-arrays with array_search() */
6 echo "*** Testing sub-arrays with array_search() ***\n";
14 var_dump( array_search("four", $sub_array) );
16 var_dump( array_search(3, $sub_array[1]) );
17 var_dump( array_search(array('','i'), $sub_array) );
19 /* checking for objects in array_search() */
20 echo "\n*** Testing objects with array_search() ***\n";
31 var_dump( array_search("array_var", $array_search_obj) );
37 var_dump( array_search("foo", $array_search_obj) );
47 *** Testing sub-arrays with array_search() ***
[all …]
H A Darray_search_variation4.phpt6 echo "*** Testing resource type with array_search() ***\n";
17 var_dump( array_search($file_handle, $resources, true) );
24 var_dump( array_search("Good", array(0,"hello")) );
26 var_dump( array_search("Good", array(0,"hello"), TRUE) );
29 var_dump( array_search(0, array("this")) );
31 var_dump( array_search(0, array("this")),TRUE );
34 var_dump( array_search("this", array(0)) );
36 var_dump( array_search("this", array(0), TRUE) );
39 var_dump( array_search(FALSE,
47 var_dump( array_search('123abc', array(123)) );
[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
5 /* Test array_search() with different possible haystack values */
7 echo "*** Testing array_search() with different haystack values ***\n";
29 $array_type on elements in $misc_array using array_search();
36 var_dump( array_search($type,$misc_array ) );
38 var_dump( array_search($type,$misc_array,true) );
40 var_dump( array_search($type,$misc_array,false) );
47 *** Testing array_search() with different haystack values ***
H A Dbug78759.phpt2 Bug #78759: array_search in $GLOBALS
8 var_dump(array_search(22, $GLOBALS));
9 var_dump(array_search(22, $GLOBALS, true));
H A Darray_search_variation1.phpt2 Test array_search() function : usage variations - different needle values
5 /* Test array_search() with different possible needle values */
7 echo "*** Testing array_search() with different needle values ***\n";
40 using array_search() */
46 var_dump(array_search($compare,$array));
48 var_dump(array_search($compare,$array,TRUE));
50 var_dump(array_search($compare,$array,FALSE));
58 *** Testing array_search() with different needle values ***
/PHP-8.2/Zend/tests/
H A Dbug70124.phpt7 echo base_convert([array_search(chr(48),chr(48),chr(48),chr(48),chr(48),$f("test"))],chr(48));
16 echo base_convert([array_search(chr(48),chr(48),chr(48),chr(48),chr(48),a::y("test"))],chr(48));
24 … echo base_convert([array_search(chr(48),chr(48),chr(48),chr(48),chr(48),$a->y("test"))],chr(48));
30 … echo base_convert([array_search(chr(48),chr(48),chr(48),chr(48),chr(48),\bar\y("test"))],chr(48));
36 echo base_convert([array_search(chr(48),chr(48),chr(48),chr(48),chr(48),y("test"))],chr(48));
/PHP-8.2/ext/sockets/tests/
H A Dbug80723.phpt14 var_dump(array_search($socket_1, $vector));
15 var_dump(array_search($socket_2, $vector));
/PHP-8.2/tests/lang/
H A Dbug19566.phpt7 var_dump(array_search('foo', $result));
/PHP-8.2/ext/standard/tests/streams/
H A Dbug77765.phpt5 if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
H A Dopendir-002.phpt5 if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
H A Dopendir-001.phpt5 if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
H A Dopendir-004.phpt7 if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
H A Dbug72771.phpt7 if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
H A Dbug77680.phpt5 if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
H A Dopendir-003.phpt7 if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
H A Dbug73457.phpt5 if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
H A Dproc_open_bug60120.phpt72 array_search($ready, $pipes)
H A Dproc_open_bug64438.phpt53 $type = array_search($pipe, $pipes);
/PHP-8.2/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-8.2/Zend/tests/generators/
H A Dyield_from_multi_tree_exception.phpt43 unset($all[array_search($gen, $all)]);
/PHP-8.2/ext/standard/tests/file/
H A Dbug60120.phpt63 $type = array_search($pipe, $pipes);
/PHP-8.2/ext/spl/tests/
H A Dobserver_001.phpt48 $idx = array_search($observer, $this->observers);

Completed in 31 milliseconds

12