summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/array_unshift.phpt
blob: 9ebe83391e142880f60c7969cc4d153ed698a01f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--TEST--
array_unshift() tests
--FILE--
<?php

$a = array();
$s = "";
var_dump(array_unshift($a, $s));
var_dump($a);
var_dump(array_unshift($a, $a));
var_dump($a);

echo "Done\n";
?>
--EXPECTF--
int(1)
array(1) {
  [0]=>
  string(0) ""
}
int(2)
array(2) {
  [0]=>
  array(1) {
    [0]=>
    string(0) ""
  }
  [1]=>
  string(0) ""
}
Done