Home
last modified time | relevance | path

Searched refs:in_array (Results 1 – 25 of 146) sorted by relevance

123456

/PHP-8.2/ext/date/tests/
H A Dtimezones-list.phpt10 echo in_array( "Europe/Oslo", $a ) ? "found" : "notfound", "\n";
11 echo in_array( "Europe/Oslo", $b ) ? "found" : "notfound", "\n";
12 echo in_array( "Europe/Oslo", $c ) ? "found" : "notfound", "\n";
13 echo in_array( "Europe/Oslo", $d ) ? "found" : "notfound", "\n\n";
20 echo in_array( "UTC", $a ) ? "found" : "notfound", "\n";
21 echo in_array( "UTC", $b ) ? "found" : "notfound", "\n";
22 echo in_array( "UTC", $c ) ? "found" : "notfound", "\n";
23 echo in_array( "UTC", $d ) ? "found" : "notfound", "\n\n";
25 echo in_array( "US/Eastern", $a ) ? "found" : "notfound", "\n";
26 echo in_array( "US/Eastern", $b ) ? "found" : "notfound", "\n";
[all …]
H A Dtimezone_identifiers_list_basic1.phpt15 var_dump(in_array("Europe/London", $zones));
16 var_dump(in_array("America/New_York", $zones));
17 var_dump(in_array("UTC", $zones));
H A DDateTimeZone_listIdentifiers_basic1.phpt15 var_dump(in_array("Europe/London", $zones));
16 var_dump(in_array("America/New_York", $zones));
17 var_dump(in_array("UTC", $zones));
H A DDateTimeZone_getLocation.phpt18 …if (!in_array($timeZoneArray['country_code'], $countryCode) && NULL != $timeZoneArray['country_cod…
21 if(in_array($timeZoneArray['country_code'], $countryCodeTest)){
/PHP-8.2/ext/standard/tests/array/
H A Din_array_variation3.phpt5 /* Test in_array() with haystack as sub-array and object */
7 /* checking for sub-arrays with in_array() */
8 echo "*** Testing sub-arrays with in_array() ***\n";
16 var_dump( in_array("four", $sub_array) );
18 var_dump( in_array(3, $sub_array[1]) );
19 var_dump( in_array(array('','i'), $sub_array) );
21 /* checking for objects in in_array() */
22 echo "\n*** Testing objects with in_array() ***\n";
39 var_dump( in_array("foo", $in_array_obj) );
49 *** Testing sub-arrays with in_array() ***
[all …]
H A Din_array_variation4.phpt8 echo "*** Testing resource type with in_array() ***\n";
19 var_dump( in_array($file_handle, $resources, true) );
26 var_dump( in_array("Good", array(0,"hello")) );
28 var_dump( in_array("Good", array(0,"hello"), TRUE) );
31 var_dump( in_array(0, array("this")) );
33 var_dump( in_array(0, array("this")),TRUE );
36 var_dump( in_array("this", array(0)) );
38 var_dump( in_array("this", array(0), TRUE) );
41 var_dump( in_array(FALSE,
49 var_dump( in_array('123abc', array(123)) );
[all …]
H A Din_array_variation2.phpt2 Test in_array() function : usage variations - different haystack values
5 /* Test in_array() with different possible haystack values */
7 echo "*** Testing in_array() with different haystack values ***\n";
28 $array_type on elements in $misc_array using in_array();
35 var_dump( in_array($type,$misc_array ) );
37 var_dump( in_array($type,$misc_array,true) );
39 var_dump( in_array($type,$misc_array,false) );
46 *** Testing in_array() with different haystack values ***
H A Din_array_with_ref.phpt2 in_array() with references
8 var_dump(in_array(42, $array, false));
9 var_dump(in_array(42, $array, true));
H A Darray_search.phpt2 Test array_search()/in_array()
11 var_dump(in_array(123, $arr2));
12 var_dump(in_array(123, $arr1));
14 var_dump(in_array('a', $arr1));
/PHP-8.2/ext/mbstring/tests/
H A Dmb_list_encodings.phpt7 var_dump(in_array("7bit", mb_list_encodings()));
8 var_dump(in_array("8bit", mb_list_encodings()));
9 var_dump(in_array("ASCII", mb_list_encodings()));
10 var_dump(in_array("non-existent", mb_list_encodings()));
/PHP-8.2/ext/intl/tests/
H A Duconverter_enum.phpt9 var_dump(in_array('UTF-7', $avail));
10 var_dump(in_array('CESU-8', $avail));
11 var_dump(in_array('ISO-8859-1', $avail));
14 var_dump(in_array('ISO-8859-1', $latin1));
H A Dtimezone_createTimeZoneIDEnumeration_variant1.phpt12 var_dump(in_array('Europe/Lisbon', $values));
13 var_dump(in_array('Atlantic/Azores', $values));
/PHP-8.2/ext/spl/tests/
H A Dbug62433.phpt8 var_dump(in_array(__DIR__ . DIRECTORY_SEPARATOR . '.', $dots));
9 var_dump(in_array(__DIR__ . DIRECTORY_SEPARATOR . '..', $dots));
11 var_dump(in_array(__DIR__ . DIRECTORY_SEPARATOR . '.', $ndots));
12 var_dump(in_array(__DIR__ . DIRECTORY_SEPARATOR . '..', $ndots));
/PHP-8.2/tests/basic/
H A Dbug31875.phpt14 var_dump(in_array($disabled_function, $functions['internal']));
17 var_dump(in_array($disabled_function, $functions['internal']));
20 var_dump(in_array($disabled_function, $functions['internal']));
/PHP-8.2/Zend/tests/
H A Dget_defined_functions_basic.phpt32 if (!in_array("cos", $internal) || !in_array("strlen", $internal)) {
42 if (count($user) == 2 && in_array("foo", $user) && in_array("helloworld", $user)) {
/PHP-8.2/ext/standard/tests/dir/
H A Dscandir_variation10.phpt31 var_dump(in_array('.', $files));
32 var_dump(in_array('..', $files));
33 var_dump(in_array('file1.tmp', $files));
34 var_dump(in_array('file2.tmp', $files));
H A Dscandir_variation10-win32-mb.phpt37 var_dump(in_array('.', $files));
38 var_dump(in_array('..', $files));
39 var_dump(in_array('私はガラスを食べられますfile1.tmp', $files));
40 var_dump(in_array('私はガラスを食べられますfile2.tmp', $files));
/PHP-8.2/ext/standard/tests/class_object/
H A Dget_declared_traits_basic_001.phpt20 var_dump(in_array('MyTrait', get_declared_traits()));
24 var_dump(in_array( 'I', get_declared_traits()));
28 var_dump(in_array( 'MyClass', get_declared_traits()));
H A Dget_declared_classes_variation1.phpt12 var_dump(in_array('AutoLoaded', get_declared_classes()));
16 var_dump(in_array('AutoLoaded', get_declared_classes()));
H A Dget_declared_interfaces_variation1.phpt12 var_dump(in_array('AutoInterface', get_declared_interfaces()));
17 var_dump(in_array('AutoInterface', get_declared_interfaces()));
H A Dget_declared_traits_variation1.phpt12 var_dump(in_array('AutoTrait', get_declared_traits()));
20 var_dump(in_array('AutoTrait', get_declared_traits()));
H A Dget_declared_classes_basic_001.phpt19 var_dump(in_array('C', get_declared_classes()));
23 var_dump(in_array( 'I', get_declared_classes()));
H A Dget_declared_interfaces_basic_001.phpt19 var_dump(in_array('C', get_declared_interfaces()));
23 var_dump(in_array('I', get_declared_interfaces()));
/PHP-8.2/ext/dba/tests/
H A Dskipif.inc5 if (in_array('flatfile', $handlers)) {
15 if (!in_array($handler, dba_handlers())) {
/PHP-8.2/win32/build/
H A Dmkdist.php74 $is_pecl = in_array($module, $pecl_targets);
89 if (((in_array($depbase, $sapi_targets) ||
90 in_array($depbase, $ext_targets) || in_array($depbase, $pecl_targets)) ||
95 if (in_array(basename($dep), $no_dist)) {
111 if (!in_array($dep, $pecl_dll_deps)) {
115 if (!in_array($dep, $extra_dll_deps)) {
120 …if (!isset($per_module_deps[basename($module)]) || !in_array($dep, $per_module_deps[basename($modu…
299 if (in_array($modulename, $pecl_targets))
394 if (in_array($dll, $extra_dll_deps)) {

Completed in 26 milliseconds

123456