Home
last modified time | relevance | path

Searched refs:ar (Results 1 – 25 of 89) sorted by relevance

1234

/PHP-8.3/ext/spl/tests/
H A Darray_001.phpt7 $ar = new ArrayObject($ar);
9 var_dump($ar);
11 $ar[2] = 2;
12 var_dump($ar[2]);
19 var_dump($ar);
24 unset($ar[1]);
27 unset($ar[7]);
29 var_dump($ar);
31 $ar[] = '3';
32 $ar[] = 4;
[all …]
H A Darray_015.phpt6 $ar = new ArrayObject();
8 $ar[0] = 1;
9 $ar[1] = 2;
10 $ar[2] = 3;
11 $ar[3] = 4;
12 $ar[4] = 5;
14 var_dump($ar);
16 $it = $ar->getIterator();
22 var_dump($ar);
30 var_dump($ar);
[all …]
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);
H A Diterator_037.phpt6 function test($ar, $flags)
9 $it = new CachingIterator($ar, 0);
46 $ar = new MyArrayIterator(array(1, 2, 3));
48 test($ar, CachingIterator::CALL_TOSTRING);
49 test($ar, CachingIterator::TOSTRING_USE_KEY);
50 test($ar, CachingIterator::TOSTRING_USE_CURRENT);
52 $ar = new MyArrayIterator(array(new MyItem(1), new MyItem(2), new MyItem(3)));
54 test($ar, CachingIterator::TOSTRING_USE_INNER);
55 test($ar, CachingIterator::CALL_TOSTRING | CachingIterator::TOSTRING_USE_KEY);
64 $it = new CachingIterator($ar, CachingIterator::CALL_TOSTRING);
[all …]
H A Dsplfixedarray_offsetExists_larger.phpt7 $ar = new SplFixedArray(3);
8 $ar[0] = 1;
9 $ar[1] = 2;
10 $ar[2] = 3;
12 var_dump($ar->offsetExists(4));
H A Dbug67247.phpt5 $ar = new SplFixedArray(1);
6 echo "size: ".$ar->getSize()."\n";
7 $ar->setSize((PHP_INT_SIZE==8)?0x2000000000000001:0x40000001);
8 echo "size: ".$ar->getSize()."\n";
H A Diterator_049.phpt6 $ar = new ArrayIterator(array(NULL=>NULL));
7 @var_dump($ar);
8 var_dump($ar->getArrayCopy());
H A Dspl_001.phpt8 $ar = iterator_to_array($it);
12 print_r($ar);
14 foreach($ar as $v)
H A Diterator_049b.phpt6 $ar = new ArrayIterator(array(
14 @var_dump($ar);
15 var_dump($ar->getArrayCopy());
H A Diterator_024.phpt6 $ar = array(1, 2, array(31, 32, array(331)), 4);
8 foreach(new RecursiveIteratorIterator(new ArrayObject($ar, 0, "RecursiveArrayIterator")) as $v) ech…
10 $it = new ArrayObject($ar);
15 foreach(new RecursiveIteratorIterator(new ArrayObject($ar)) as $v) echo "$v\n";
H A Diterator_050.phpt18 $ar = new ArrayIterator(array('1','1,2','1,2,3','',NULL,array(),'FooBar',',',',,'));
19 $it = new MyRegexIterator($ar, '/(\d),(\d)/', RegexIterator::GET_MATCH);
22 $it = new MyRegexIterator($ar, '/(\d)/', RegexIterator::GET_MATCH);
25 var_dump($ar);
H A Diterator_051.phpt18 $ar = new ArrayIterator(array('1'=>0,'1,2'=>1,'1,2,3'=>2,0=>3,'FooBar'=>4,','=>5,',,'=>6));
19 $it = new MyRegexIterator($ar, '/(\d),(\d)/', RegexIterator::GET_MATCH, RegexIterator::USE_KEY);
22 $it = new MyRegexIterator($ar, '/(\d)/', RegexIterator::GET_MATCH, RegexIterator::USE_KEY);
25 var_dump($ar);
/PHP-8.3/ext/standard/tests/strings/
H A Dstripslashes_variation4.phpt16 array("f\\'oo", "b\\'ar", array("fo\\'o", "b\\'ar")),
18 array("f\\'oo", "b\\'ar", array("fo\\'o", "b\\'ar", array(""))),
19 array("f\\'oo", "b\\'ar", array("fo\\'o", "b\\'ar", array("fo\\'o", "b\\'ar")))
64 string(4) "b'ar"
70 string(4) "b'ar"
79 string(4) "b'ar"
92 string(4) "b'ar"
98 string(4) "b'ar"
112 string(4) "b'ar"
118 string(4) "b'ar"
[all …]
H A Dbug60801.phpt8 var_dump(strpbrk($haystack, 'ar'));
17 string(2) "ar"
18 string(3) "%0ar"
19 string(4) "b%0ar"
/PHP-8.3/ext/standard/tests/array/
H A Darray_multisort_variation5.phpt7 $ar = array( 2, "aa" , "1");
9 array_multisort($ar, SORT_REGULAR, SORT_ASC);
10 var_dump($ar);
12 array_multisort($ar, SORT_STRING, SORT_ASC);
13 var_dump($ar);
15 array_multisort($ar, SORT_NUMERIC, SORT_ASC);
16 var_dump($ar);
H A Darray_multisort_variation6.phpt7 $ar = array( 2, "aa" , "1");
9 array_multisort($ar, SORT_REGULAR, SORT_DESC);
10 var_dump($ar);
12 array_multisort($ar, SORT_STRING, SORT_DESC);
13 var_dump($ar);
15 array_multisort($ar, SORT_NUMERIC, SORT_DESC);
16 var_dump($ar);
H A Darray_walk_closure.phpt6 $ar = ["one" => 1, "two"=>2, "three" => 3];
10 $ar = ["one" => 1, "two"=>2, "three" => 3];
17 var_dump(array_walk($ar, $func, $user_data));
22 $ar = ["one" => 1, "two"=>2, "three" => 3];
29 var_dump(array_walk($ar, $func, $user_data));
35 $ar = ["one" => 1, "two"=>2, "three" => 3];
42 var_dump(array_walk($ar, $func, $user_data));
55 $ar = ["one" => 1, "two"=>2, "three" => 3];
70 $ar = ["one" => 1, "two"=>2, "three" => 3];
73 var_dump(array_walk($ar, "sum_it_up_array", $user_data));
[all …]
H A Dbug69166.phpt7 $ar = array_values($array);
8 $ar[] = 1;
9 var_dump($ar);
H A Dbug34982.phpt5 $ar = array(
10 func($ar);
11 print_r($ar);
/PHP-8.3/ext/dba/
H A Dinstall_cdb.sh35 ar x ../cdb.a
36 ar x ../byte.a
37 ar x ../unix.a
38 ar x ../byte.a
39 ar x ../buffer.a
43 ar r "$prefix/lib/libcdb.a" *
/PHP-8.3/tests/classes/
H A Dtype_hinting_003.phpt8 static function f1(array $ar)
11 var_dump($ar);
14 static function f2(array $ar = NULL)
17 var_dump($ar);
20 static function f3(array $ar = array())
23 var_dump($ar);
26 static function f4(array $ar = array(25))
29 var_dump($ar);
60 Fatal error: Uncaught TypeError: Test::f1(): Argument #1 ($ar) must be of type array, int given, ca…
H A Dstatic_properties_001.phpt7 static public $ar = array();
10 var_dump(test::$ar);
12 test::$ar[] = 1;
14 var_dump(test::$ar);
/PHP-8.3/tests/lang/
H A Dbug19943.phpt5 $ar = array();
7 $ar[$count] = "$count";
8 @$ar[$count]['0idx'] = "$count";
12 echo $ar[$count]." -- ".@$ar[$count]['0idx']."\n";
/PHP-8.3/Zend/tests/
H A Dbug34064.phpt18 $ar = array();
19 $this->test_ref($ar[]);
20 var_dump($ar);
21 $this->test($ar[]);
/PHP-8.3/ext/filter/tests/
H A D035.phpt8 ar[elm1]=1234&ar[elm2]=0660&a=0234
17 $ret = filter_input(INPUT_GET, 'ar', FILTER_VALIDATE_INT, array('flags'=>FILTER_REQUIRE_ARRAY));
20 $ret = filter_input(INPUT_GET, 'ar', FILTER_VALIDATE_INT, array('flags'=>FILTER_FLAG_ALLOW_OCTAL|FI…

Completed in 32 milliseconds

1234