/php-src/ext/standard/tests/array/ |
H A D | array_search1.phpt | 2 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 D | array_search_variation3.phpt | 5 /* 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 D | array_search_variation4.phpt | 6 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 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 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 D | bug78759.phpt | 2 Bug #78759: array_search in $GLOBALS 8 var_dump(array_search(22, $GLOBALS)); 9 var_dump(array_search(22, $GLOBALS, true));
|
H A D | array_search_variation1.phpt | 2 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-src/Zend/tests/ |
H A D | bug70124.phpt | 7 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-src/ext/sockets/tests/ |
H A D | bug80723.phpt | 14 var_dump(array_search($socket_1, $vector)); 15 var_dump(array_search($socket_2, $vector));
|
/php-src/tests/lang/ |
H A D | bug19566.phpt | 7 var_dump(array_search('foo', $result));
|
/php-src/ext/standard/tests/streams/ |
H A D | bug77765.phpt | 5 if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
|
H A D | opendir-002.phpt | 5 if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
|
H A D | opendir-001.phpt | 5 if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
|
H A D | bug72771.phpt | 7 if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
|
H A D | bug77680.phpt | 5 if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
|
H A D | opendir-004.phpt | 7 if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
|
H A D | bug73457.phpt | 5 if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
|
H A D | opendir-003.phpt | 7 if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
|
H A D | proc_open_bug60120.phpt | 72 array_search($ready, $pipes)
|
H A D | proc_open_bug64438.phpt | 53 $type = array_search($pipe, $pipes);
|
/php-src/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-src/ext/mbstring/libmbfl/mbfl/ |
H A D | generate_name_perfect_hash_table.php | 107 $index = array_search($key, $encoding_pointer_array);
|
/php-src/Zend/tests/generators/ |
H A D | yield_from_multi_tree_exception.phpt | 43 unset($all[array_search($gen, $all)]);
|
/php-src/ext/standard/tests/file/ |
H A D | bug60120.phpt | 60 $type = array_search($pipe, $pipes);
|