/PHP-5.4/Zend/tests/ |
H A D | 029.phpt | 6 $arr = array(new stdClass); 8 $arr[0]->a = clone $arr[0]; 9 var_dump($arr); 11 $arr[0]->b = new $arr[0]; 12 var_dump($arr); 14 $arr[0]->c = $arr[0]->a; 15 var_dump($arr);
|
H A D | bug50255.phpt | 6 $arr = array('foo' => 'bar'); 9 var_dump(isset($arr->foo)); 10 var_dump(isset($arr->bar)); 11 var_dump(isset($arr['foo'])); 12 var_dump(isset($arr['bar'])); 14 var_dump(empty($arr->foo)); 15 var_dump(empty($arr->bar)); 16 var_dump(empty($arr['foo'])); 17 var_dump(empty($arr['bar']));
|
H A D | dereference_011.phpt | 9 public $arr; 12 return $this->arr; 21 var_dump($foo->a()[1]->arr[1]->a()[1]->arr[1]->arr[0]); 23 var_dump($foo->a()[1]->arr[1]); 29 ["arr"]=> 38 ["arr"]=>
|
H A D | 033.phpt | 6 $arr[1][2][3][4][5]; 8 echo $arr[1][2][3][4][5]; 10 $arr[1][2][3][4][5]->foo; 12 $arr[1][2][3][4][5]->foo = 1; 14 $arr[][] = 2; 16 $arr[][]->bar = 2; 21 Notice: Undefined variable: arr in %s on line %d 23 Notice: Undefined variable: arr in %s on line %d 25 Notice: Undefined variable: arr in %s on line %d
|
H A D | offset_array.phpt | 6 $arr = array(1,2,3,4,5,6,7,8); 8 var_dump($arr[1]); 9 var_dump($arr[0.0836]); 10 var_dump($arr[NULL]); 11 var_dump($arr["run away"]); 13 var_dump($arr[TRUE]); 14 var_dump($arr[FALSE]); 17 var_dump($arr[$fp]); 20 var_dump($arr[$obj]); 23 var_dump($arr[$arr1]);
|
H A D | bug60362.phpt | 5 $arr = array('exists' => 'foz'); 7 if (isset($arr['exists']['non_existent'])) { 9 var_dump($arr['exists']['non_existent']); 13 if (isset($arr['exists'][1])) { 15 var_dump($arr['exists'][1]); 27 if (isset($arr['exists'][1][0])) { 29 var_dump($arr['exists'][1][0]); 41 if (empty($arr['exists'][1])) { 45 var_dump($arr['exists'][1]); 55 if (empty($arr['exists'][1][0])) { [all …]
|
H A D | bug40509.phpt | 7 global $arr; 9 $c = $arr["v"]; 13 $arr["v"] = array("a"); 15 var_dump(key($arr["v"])); 17 var_dump(key($arr["v"])); 18 foreach ($arr["v"] as $k => $v) { 21 var_dump(key($arr["v"]));
|
H A D | indirect_call_array_004.phpt | 21 $arr = array('foo', 'abc'); 24 $arr(); 30 $arr = array('foo', '123'); 33 $arr(); 43 $arr = array($foo, 'abc'); 46 $arr(); 54 $arr = array($foo, '123'); 57 $arr();
|
H A D | bug60169.phpt | 6 $arr = array("test"); 7 list($a,$b) = is_array($arr)? $arr : $arr; 8 list($c,$d) = is_array($arr)?: NULL;
|
H A D | anonymous_func_002.phpt | 8 $arr = array(create_function('', 'return $GLOBALS["arr"];'), 2); 10 var_dump($arr[$test(1)]); 11 var_dump($arr[$test(0)]() == $arr);
|
H A D | bug39944.phpt | 33 function addToArray(&$arr, $strToAdd) { 34 $arr[] = $strToAdd; 50 protected $arr; 57 if (!$this->arr) 58 $this->arr = array(); 59 return $this->arr; 62 private function addToArray(&$arr, $strToAdd) { 63 $arr[] = $strToAdd;
|
H A D | bug32993.phpt | 7 public $arr = array(); 9 public function rewind() { return reset($this->arr); } 11 public function key() { return key($this->arr); } 12 public function next() { return next($this->arr); } 13 public function valid() { return (current($this->arr) !== false); } 17 $t->arr = array(1, 2, 3);
|
H A D | bug43201.phpt | 16 $c->arr[0]["k"] = 1; 17 $c->arr[0]["k2"] = $ref; 20 $c->arr[$cnt]["k2"] = $ref; 25 Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on l… 27 Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on l… 33 Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on l… 37 Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on l… 41 Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on l… 45 Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on l… 49 Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on l… [all …]
|
H A D | 028.phpt | 6 $arr = array('strtoupper', 'strtolower'); 10 var_dump($arr[0]('foo') == 'FOO'); 11 var_dump($arr[$k]('foo') == 'FOO'); 12 var_dump($arr[++$k]('FOO') == 'foo'); 13 var_dump($arr[++$k]('FOO') == 'foo');
|
/PHP-5.4/ext/intl/doc/ |
H A D | collator_api.php | 142 * @param array $arr Array of strings to sort 151 public function sort( $arr, $sort_flags ) {} argument 158 * @param array $arr Array of strings to sort 165 public function asort( $arr, $sort_flags ) {} argument 173 * @param array $arr Array of strings to sort 177 public function sortWithSortKeys( $arr ) {} argument 295 function collator_sort( $coll, $arr, $sort_flags ) {} argument 301 * @param array $arr Array of strings to sort. 308 function collator_asort( $coll, $arr, $sort_flags ) {} argument 317 * @param array $arr Array of strings to sort [all …]
|
/PHP-5.4/ext/phar/tests/cache_list/files/ |
H A D | write6.phar | 7 $arr = $phar->buildFromIterator(new RecursiveDirectoryIterator($d, RecursiveDirectoryIterator::SKIP… 8 $arr = $phar->buildFromDirectory($d); 9 ksort($arr); 10 var_dump($arr); 12 $arr = array(); 14 $arr[$name] = $file->getContent(); 16 ksort($arr); 17 foreach ($arr as $name => $content) {
|
H A D | write6.phar.inc | 13 $arr = $phar->buildFromIterator(new RecursiveDirectoryIterator($d, RecursiveDirectoryIterator::SKIP… 14 $arr = $phar->buildFromDirectory($d); 15 ksort($arr); 16 var_dump($arr); 18 $arr = array(); 20 $arr[$name] = $file->getContent(); 22 ksort($arr); 23 foreach ($arr as $name => $content) {
|
H A D | write5.phar | 7 $arr = $phar->buildFromDirectory($d); 8 ksort($arr); 9 var_dump($arr); 11 $arr = array(); 13 $arr[$name] = $file->getContent(); 15 ksort($arr); 16 foreach ($arr as $name => $content) {
|
H A D | write5.phar.inc | 13 $arr = $phar->buildFromDirectory($d); 14 ksort($arr); 15 var_dump($arr); 17 $arr = array(); 19 $arr[$name] = $file->getContent(); 21 ksort($arr); 22 foreach ($arr as $name => $content) {
|
/PHP-5.4/ext/sysvmsg/tests/ |
H A D | 004.phpt | 12 $arr = array('msg_perm.mode' => 0600); 13 var_dump(msg_set_queue($q, $arr)); 15 var_dump(count(array_diff_assoc($arr, msg_stat_queue($q))) == 0); 18 $arr = array('msg_perm.uid' => getmyuid()); 19 var_dump(msg_set_queue($q, $arr)); 21 var_dump(count(array_diff_assoc($arr, msg_stat_queue($q))) == 0); 24 $arr = array('msg_perm.gid' => getmygid()); 25 var_dump(msg_set_queue($q, $arr)); 27 var_dump(count(array_diff_assoc($arr, msg_stat_queue($q))) == 0); 31 $arr = array('msg_qbytes' => ($res['msg_qbytes'] -1)); [all …]
|
/PHP-5.4/ext/standard/tests/strings/ |
H A D | parse_str_basic4.phpt | 5 /* Prototype : void parse_str ( string $str [, array &$arr ] ) 11 $str = "arr[1=sid&arr[4][2=fred"; 15 $str = "arr1]=sid&arr[4]2]=fred"; 19 $str = "arr[one=sid&arr[4][two=fred"; 29 $str = "arr.test[1]=sid&arr test[4][two]=fred"; 40 ["arr"]=> 50 ["arr"]=> 60 ["arr"]=>
|
/PHP-5.4/ext/standard/tests/array/ |
H A D | array_map_variation2.phpt | 12 $arr = array("k1" => "v1","k2"=>"v2"); 13 $arr[]=&$arr["k1"]; 14 $arr[]=&$arr; 17 var_dump( array_map("cb1", $arr)); 18 var_dump( array_map("cb2", $arr,$arr)); 19 var_dump( array_map(null, $arr)); 20 var_dump( array_map(null, $arr, $arr)); 23 $arr[0] = null; 24 $arr[1] = null;
|
H A D | array_map_variation1.phpt | 15 $arr = array("stringkey" => "value"); 18 var_dump( array_map("cb1", $arr)); 19 var_dump( array_map("cb2", $arr,$arr)); 20 var_dump( array_map(null, $arr)); 21 var_dump( array_map(null, $arr, $arr));
|
H A D | each_variation6.phpt | 5 /* Prototype : array each(array $arr) 17 $arr = array('zero', 'one', 'two', 'abc', 'xyz'); 20 echo key($arr) . " => " . current($arr) . "\n"; 23 var_dump( each($arr) ); 26 echo key($arr) . " => " . current($arr) . "\n";
|
/PHP-5.4/tests/lang/ |
H A D | foreach_with_references_001.phpt | 6 $arr = array(1 => "one", 2 => "two", 3 => "three"); 8 foreach($arr as $key => $val) { 12 print_r($arr); 14 foreach($arr as $key => &$val) { 18 print_r($arr);
|