Home
last modified time | relevance | path

Searched refs:arr (Results 1 – 25 of 206) sorted by relevance

123456789

/PHP-5.4/Zend/tests/
H A D029.phpt6 $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 Dbug50255.phpt6 $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 Ddereference_011.phpt9 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 D033.phpt6 $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 Doffset_array.phpt6 $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 Dbug60362.phpt5 $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 Dbug40509.phpt7 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 Dindirect_call_array_004.phpt21 $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 Dbug60169.phpt6 $arr = array("test");
7 list($a,$b) = is_array($arr)? $arr : $arr;
8 list($c,$d) = is_array($arr)?: NULL;
H A Danonymous_func_002.phpt8 $arr = array(create_function('', 'return $GLOBALS["arr"];'), 2);
10 var_dump($arr[$test(1)]);
11 var_dump($arr[$test(0)]() == $arr);
H A Dbug39944.phpt33 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 Dbug32993.phpt7 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 Dbug43201.phpt16 $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 D028.phpt6 $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 Dcollator_api.php142 * @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 Dwrite6.phar7 $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 Dwrite6.phar.inc13 $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 Dwrite5.phar7 $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 Dwrite5.phar.inc13 $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 D004.phpt12 $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 Dparse_str_basic4.phpt5 /* 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 Darray_map_variation2.phpt12 $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 Darray_map_variation1.phpt15 $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 Deach_variation6.phpt5 /* 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 Dforeach_with_references_001.phpt6 $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);

Completed in 32 milliseconds

123456789