/PHP-8.3/ext/spl/tests/ |
H A D | array_001.phpt | 7 $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 D | array_015.phpt | 6 $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 D | array_019.phpt | 6 $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 D | iterator_037.phpt | 6 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 D | splfixedarray_offsetExists_larger.phpt | 7 $ar = new SplFixedArray(3); 8 $ar[0] = 1; 9 $ar[1] = 2; 10 $ar[2] = 3; 12 var_dump($ar->offsetExists(4));
|
H A D | bug67247.phpt | 5 $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 D | iterator_049.phpt | 6 $ar = new ArrayIterator(array(NULL=>NULL)); 7 @var_dump($ar); 8 var_dump($ar->getArrayCopy());
|
H A D | spl_001.phpt | 8 $ar = iterator_to_array($it); 12 print_r($ar); 14 foreach($ar as $v)
|
H A D | iterator_049b.phpt | 6 $ar = new ArrayIterator(array( 14 @var_dump($ar); 15 var_dump($ar->getArrayCopy());
|
H A D | iterator_024.phpt | 6 $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 D | iterator_050.phpt | 18 $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 D | iterator_051.phpt | 18 $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 D | stripslashes_variation4.phpt | 16 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 D | bug60801.phpt | 8 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 D | array_multisort_variation5.phpt | 7 $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 D | array_multisort_variation6.phpt | 7 $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 D | array_walk_closure.phpt | 6 $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 D | bug69166.phpt | 7 $ar = array_values($array); 8 $ar[] = 1; 9 var_dump($ar);
|
H A D | bug34982.phpt | 5 $ar = array( 10 func($ar); 11 print_r($ar);
|
/PHP-8.3/ext/dba/ |
H A D | install_cdb.sh | 35 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 D | type_hinting_003.phpt | 8 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 D | static_properties_001.phpt | 7 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 D | bug19943.phpt | 5 $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 D | bug34064.phpt | 18 $ar = array(); 19 $this->test_ref($ar[]); 20 var_dump($ar); 21 $this->test($ar[]);
|
/PHP-8.3/ext/filter/tests/ |
H A D | 035.phpt | 8 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…
|