Home
last modified time | relevance | path

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

123456

/PHP-7.1/ext/standard/tests/array/
H A Din_array_errors.phpt2 Test in_array() function : error conditions
6 * Prototype : bool in_array ( mixed $needle, array $haystack [, bool $strict] )
12 echo "\n*** Testing error conditions of in_array() ***\n";
14 var_dump( in_array() );
16 /* unexpected no.of arguments in in_array() */
18 var_dump( in_array(1, $var, 0, "test") );
19 var_dump( in_array("test") );
21 /* unexpected second argument in in_array() */
23 var_dump( in_array("test", $var) );
24 var_dump( in_array(1, 123) );
[all …]
H A Din_array_variation3.phpt14 /* checking for sub-arrays with in_array() */
15 echo "*** Testing sub-arrays with in_array() ***\n";
23 var_dump( in_array("four", $sub_array) );
25 var_dump( in_array(3, $sub_array[1]) );
26 var_dump( in_array(array('','i'), $sub_array) );
28 /* checking for objects in in_array() */
29 echo "\n*** Testing objects with in_array() ***\n";
39 var_dump( in_array("array_var", $in_array_obj) );
41 var_dump( in_array("foo", $in_array_obj) );
48 *** Testing sub-arrays with in_array() ***
[all …]
H A Din_array_variation4.phpt15 echo "*** Testing resource type with in_array() ***\n";
26 var_dump( in_array($file_handle, $resources, true) );
33 var_dump( in_array("Good", array(0,"hello")) );
38 var_dump( in_array(0, array("this")) );
40 var_dump( in_array(0, array("this")),TRUE );
43 var_dump( in_array("this", array(0)) );
45 var_dump( in_array("this", array(0), TRUE) );
48 var_dump( in_array(FALSE,
56 var_dump( in_array('123abc', array(123)) );
62 *** Testing resource type with in_array() ***
[all …]
H A Din_array_variation2.phpt2 Test in_array() function : usage variations - different haystack values
6 * Prototype : bool in_array ( mixed $needle, array $haystack [, bool $strict] )
12 /* Test in_array() with different possible haystack values */
14 echo "*** Testing in_array() with different haystack values ***\n";
35 $array_type on elements in $misc_array using in_array();
42 var_dump( in_array($type,$misc_array ) );
44 var_dump( in_array($type,$misc_array,true) );
46 var_dump( in_array($type,$misc_array,false) );
53 *** 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-7.1/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.phpt21 var_dump(in_array("Europe/London", $zones));
22 var_dump(in_array("America/New_York", $zones));
23 var_dump(in_array("UTC", $zones));
H A DDateTimeZone_listIdentifiers_basic1.phpt21 var_dump(in_array("Europe/London", $zones));
22 var_dump(in_array("America/New_York", $zones));
23 var_dump(in_array("UTC", $zones));
/PHP-7.1/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-7.1/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.phpt16 var_dump(in_array('Europe/Lisbon', $values));
17 var_dump(in_array('Atlantic/Azores', $values));
/PHP-7.1/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-7.1/tests/basic/
H A Dbug31875.phpt12 var_dump(in_array($disabled_function, $functions['internal']));
15 var_dump(in_array($disabled_function, $functions['internal']));
18 var_dump(in_array($disabled_function, $functions['internal']));
/PHP-7.1/Zend/tests/
H A Dget_defined_functions_basic.phpt37 if (!in_array("cos", $internal) || !in_array("strlen", $internal)) {
47 if (count($user) == 2 && in_array("foo", $user) && in_array("helloworld", $user)) {
/PHP-7.1/ext/standard/tests/dir/
H A Dscandir_variation10.phpt36 var_dump(in_array('.', $files));
37 var_dump(in_array('..', $files));
38 var_dump(in_array('file1.tmp', $files));
39 var_dump(in_array('file2.tmp', $files));
H A Dscandir_variation10-win32-mb.phpt42 var_dump(in_array('.', $files));
43 var_dump(in_array('..', $files));
44 var_dump(in_array('私はガラスを食べられますfile1.tmp', $files));
45 var_dump(in_array('私はガラスを食べられますfile2.tmp', $files));
/PHP-7.1/win32/build/
H A Dmkdist.php79 $is_pecl = in_array($module, $pecl_targets);
94 if (((in_array($depbase, $sapi_targets) ||
95 in_array($depbase, $ext_targets) || in_array($depbase, $pecl_targets)) ||
100 if (in_array(basename($dep), $no_dist)) {
116 if (!in_array($dep, $pecl_dll_deps)) {
120 if (!in_array($dep, $extra_dll_deps)) {
125 …if (!isset($per_module_deps[basename($module)]) || !in_array($dep, $per_module_deps[basename($modu…
306 if (in_array($modulename, $pecl_targets))
381 if (in_array($dll, $extra_dll_deps)) {
/PHP-7.1/ext/phar/tests/
H A Dphar_get_supported_signatures_002.phpt8 if (in_array("OpenSSL", $arr)) die("skip openssl support enabled");
9 if (!in_array('SHA-256', $arr)) die("skip hash extension loaded shared");
H A Dphar_get_supported_signatures_002a.phpt8 if (!in_array("OpenSSL", $arr)) die("skip openssl support required");
9 if (!in_array('SHA-256', $arr)) die("skip hash extension loaded shared");
/PHP-7.1/ext/standard/tests/class_object/
H A Dget_declared_traits_basic_001.phpt27 var_dump(in_array('MyTrait', get_declared_traits()));
31 var_dump(in_array( 'I', get_declared_traits()));
35 var_dump(in_array( 'MyClass', get_declared_traits()));
H A Dget_declared_classes_variation1.phpt19 var_dump(in_array('AutoLoaded', get_declared_classes()));
23 var_dump(in_array('AutoLoaded', get_declared_classes()));
H A Dget_declared_traits_variation1.phpt19 var_dump(in_array('AutoTrait', get_declared_traits()));
27 var_dump(in_array('AutoTrait', get_declared_traits()));
/PHP-7.1/scripts/dev/generate-phpt/src/setup/
H A DgtCommandLineOptions.php56 if (!in_array($option, array_merge($this->shortOptions, $this->shortOptionsWithArgs)))
61 if (in_array($option, $this->shortOptions)) {
/PHP-7.1/ext/dba/tests/
H A Dskipif.inc7 if (in_array('flatfile', $handlers)) {
17 if (!in_array($handler, dba_handlers())) {

Completed in 28 milliseconds

123456