Home
last modified time | relevance | path

Searched refs:as (Results 1 – 25 of 2732) sorted by relevance

12345678910>>...110

/PHP-7.4/Zend/tests/grammar/
H A Dsemi_reserved_009.phpt2 Edge case: T_STRING<as> as T_STRING<?>
8 public static function as(){ echo __METHOD__, PHP_EOL; }
14 as as try;
22 TraitA::as
H A Dsemi_reserved_006.phpt33 TraitA::list as public foreach;
34 TraitB::throw as public;
35 TraitB::self as public;
39 try as public attempt;
40 exit as die;
41 \TraitC::exit as bye;
42 namespace\TraitC::exit as byebye;
45 exit as farewell;
H A Dsemi_reserved_008.phpt35 TraitA::list as public /**/ foreach;
39 try /*comment*/ as public attempt;
41 as/*comment*/die; // non qualified
42 \TraitB::exit as bye; // full qualified
44 as byebye; // even more full qualified
48 exit as farewell; // full qualified with weird spacing
/PHP-7.4/ext/standard/tests/array/
H A Darray_diff_basic.phpt17 //Test indexed array with integers as elements
21 echo "-- Test indexed array with integers as elements --\n";
26 //Test indexed array with strings as elements
30 echo "-- Test indexed array with strings as elements --\n";
34 //Test associative array with strings as keys and integers as elements
38 echo "-- Test associative array with strings as keys and integers as elements --\n";
46 echo "-- Test associative array with strings as keys and integers as elements --\n";
57 -- Test indexed array with integers as elements --
70 -- Test indexed array with strings as elements --
83 -- Test associative array with strings as keys and integers as elements --
[all …]
H A Darray_push_variation3.phpt12 * 1. an array as $var arg
13 * 2. as sub-array as $stack arg
18 echo "\n-- Pass array as \$var argument --\n";
24 echo "\n-- Pass sub-array as \$stack argument --\n";
33 -- Pass array as $var argument --
51 -- Pass sub-array as $stack argument --
H A Darray_sum_variation5.phpt2 Test array_sum() function : usage variations - array with reference variables as elements
11 * Testing array_sum() with 'input' having reference variables as elements
14 echo "*** Testing array_sum() : array with elements as reference ***\n";
21 // input array containing elements as reference variables
35 *** Testing array_sum() : array with elements as reference ***
H A Darray_filter_variation9.phpt2 Test array_filter() function : usage variations - built-in functions as 'callback' argument
11 * Passing built-in functions and different language constructs as 'callback' argument
14 echo "*** Testing array_filter() : usage variations - built-in functions as 'callback' argument ***…
18 // using built-in function 'is_int' as 'callback'
21 // using built-in function 'chr' as 'callback'
24 // using language construct 'echo' as 'callback'
27 // using language construct 'exit' as 'callback'
33 *** Testing array_filter() : usage variations - built-in functions as 'callback' argument ***
/PHP-7.4/Zend/tests/
H A Dindexing_001.phpt9 foreach ($testvalues as $testvalue) {
17 foreach ($testvalues as $testvalue) {
25 foreach ($testvalues as $testvalue) {
33 foreach ($testvalues as $testvalue) {
51 Warning: Cannot use a scalar value as an array in %s on line %d
54 Warning: Cannot use a scalar value as an array in %s on line %d
57 Warning: Cannot use a scalar value as an array in %s on line %d
77 Warning: Cannot use a scalar value as an array in %s on line %d
96 Warning: Cannot use a scalar value as an array in %s on line %d
99 Warning: Cannot use a scalar value as an array in %s on line %d
[all …]
H A Dforeach_017.phpt8 foreach($a as &$v) {
20 foreach($a as &$v) {
32 foreach($a as &$v) {
46 foreach($a as &$v) {
58 foreach($a as &$v) {
70 foreach($a as &$v) {
/PHP-7.4/ext/date/tests/
H A Dgmstrftime_variation6.phpt20 'Hour as decimal by 24-hour format' => "%H",
21 'Hour as decimal by 12-hour format' => "%I",
22 'Minute as decimal number' => "%M",
24 'Second as decimal number' => "%S",
29 foreach($inputs as $key =>$value) {
40 --Hour as decimal by 24-hour format--
44 --Hour as decimal by 12-hour format--
48 --Minute as decimal number--
56 --Second as decimal number--
H A Dstrftime_variation6.phpt21 'Hour as decimal by 24-hour format' => "%H",
22 'Hour as decimal by 12-hour format' => "%I",
23 'Minute as decimal number' => "%M",
25 'Second as decimal number' => "%S",
30 foreach($inputs as $key =>$value) {
41 --Hour as decimal by 24-hour format--
45 --Hour as decimal by 12-hour format--
49 --Minute as decimal number--
57 --Second as decimal number--
H A Dstrftime_variation7.phpt21 'Day of the month as a decimal number' => "%d",
22 'Day of the year as a decimal number' => "%j",
23 'Day of the week as a decimal number' => "%w"
28 foreach($inputs as $key =>$value) {
39 --Day of the month as a decimal number--
43 --Day of the year as a decimal number--
47 --Day of the week as a decimal number--
H A Dgmstrftime_variation7.phpt20 'Day of the month as a decimal number' => "%d",
21 'Day of the year as a decimal number' => "%j",
22 'Day of the week as a decimal number' => "%w"
27 foreach($inputs as $key =>$value) {
38 --Day of the month as a decimal number--
42 --Day of the year as a decimal number--
46 --Day of the week as a decimal number--
/PHP-7.4/ext/pdo_mysql/tests/
H A Dbug66141.phpt14 $input = 'Something\', 1 as one, 2 as two FROM dual; -- f';
35 string(50) "'Something\', 1 as one, 2 as two FROM dual; -- f'"
36 string(50) "'Something'', 1 as one, 2 as two FROM dual; -- f'"
37 string(50) "'Something'', 1 as one, 2 as two FROM dual; -- f'"
/PHP-7.4/ext/pdo_sqlite/tests/
H A Dbug44327_2.phpt12 $x = $db->query('select 1 as queryString');
20 $x = $db->query('select 1 as queryString');
30 string(23) "select 1 as queryString"
32 string(23) "select 1 as queryString"
43 string(23) "select 1 as queryString"
45 string(23) "select 1 as queryString"
/PHP-7.4/ext/standard/tests/strings/
H A Dstrrpos_variation11.phpt95 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
98 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
102 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
105 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
109 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
112 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
116 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
119 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
123 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
126 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
[all …]
H A Dstrripos_variation2.phpt62 42, //needle as int(ASCII value of '*')
63 $haystack //haystack as needle
68 foreach ($needles as $needle) {
137 Deprecated: strripos(): Non-string needles will be interpreted as strings in %s on line %d
140 Deprecated: strripos(): Non-string needles will be interpreted as strings in %s on line %d
143 Deprecated: strripos(): Non-string needles will be interpreted as strings in %s on line %d
146 Deprecated: strripos(): Non-string needles will be interpreted as strings in %s on line %d
150 Deprecated: strripos(): Non-string needles will be interpreted as strings in %s on line %d
153 Deprecated: strripos(): Non-string needles will be interpreted as strings in %s on line %d
156 Deprecated: strripos(): Non-string needles will be interpreted as strings in %s on line %d
[all …]
H A Djoin_variation5.phpt2 Test join() function : usage variations - sub array as argument
12 * test join() by passing pieces as array containing sub array(s)
18 // pieces as array containing sub array
21 // glue as array & pieces as array containing sub array
24 // numeric value as glue, pieces as array containg sub array
27 // using directly the sub_array as pieces
H A Dstrcspn_variation5.phpt13 * Testing strcspn() : with different heredoc strings as str argument
68 foreach($heredoc_strings as $str) {
69 echo "\n-- Iteration with str value as \"$str\" --\n";
78 -- Iteration with str value as "" --
81 -- Iteration with str value as "
86 -- Iteration with str value as "first line of heredoc string
91 -- Iteration with str value as "hello world
97 -- Iteration with str value as "hello123world456
101 -- Iteration with str value as "hello�world�hello
105 -- Iteration with str value as "hello�@�world�hello
H A Dstrspn_variation5.phpt13 * Testing strspn() : with different heredoc strings as str argument
68 foreach($heredoc_strings as $str) {
69 echo "\n-- Iteration with str value as \"$str\" --\n";
78 -- Iteration with str value as "" --
81 -- Iteration with str value as "
86 -- Iteration with str value as "first line of heredoc string
91 -- Iteration with str value as "hello world
97 -- Iteration with str value as "hello123world456
101 -- Iteration with str value as "hello�world�hello
105 -- Iteration with str value as "hello�@�world�hello
H A Dstrrchr_variation12.phpt24 //needle as null string
26 //needle as NULL
35 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d
39 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d
43 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d
47 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d
51 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d
55 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d
59 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d
/PHP-7.4/ext/intl/tests/
H A Dtimezone_hasSameRules_basic.phpt15 echo "Europe/Lisbon has same rules as itself:\n";
18 echo "\nEurope/Lisbon has same rules as Portugal:\n";
21 echo "\nEurope/Lisbon has same rules as Atlantic/Azores:\n";
27 Europe/Lisbon has same rules as itself:
30 Europe/Lisbon has same rules as Portugal:
33 Europe/Lisbon has same rules as Atlantic/Azores:
/PHP-7.4/ext/spl/tests/
H A Darray_019.phpt6 $ar = new ArrayObject(array(1)); foreach($ar as &$v) var_dump($v);
7 $ar = new ArrayIterator(array(2)); foreach($ar as &$v) var_dump($v);
8 $ar = new RecursiveArrayIterator(array(3)); foreach($ar as &$v) var_dump($v);
18 $ar = new ArrayIteratorEx(array(4)); foreach($ar as $v) var_dump($v);
19 $ar = new ArrayIteratorEx(array(5)); foreach($ar as &$v) var_dump($v);
/PHP-7.4/ext/pdo_dblib/tests/
H A Dbug_54648.phpt12 …>query("select cast('1950-01-18 23:00:00' as smalldatetime) as sdt, cast('2030-01-01 23:59:59' as
/PHP-7.4/ext/standard/tests/general_functions/
H A Dvar_export_basic1.phpt27 '0x123B' => 0x123B, // integer as hexadecimal
31 "-0x80000000" => -0x7FFFFFFF - 1, // max negative integer as hexadecimal
32 "'0x7fffffff'" => '0x7fffffff', // max positive integer as hexadecimal
33 "0x7FFFFFFF" => 0x7FFFFFFF, // max positive integer as hexadecimal
34 "'0123'" => '0123', // integer as octal
36 "-020000000000" => -017777777777 - 1, // max negative integer as octal
37 "017777777777" => 017777777777, // max positive integer as octal
42 foreach($valid_ints as $key => $int_value) {

Completed in 35 milliseconds

12345678910>>...110