Updating submodules
[hiphop-php.git] / hphp / test / slow / ext_array / array_shift.php
blob5dc79d805f198dbfd15a990188a95e8c2de8569c
1 <?hh
3 function a() {
4 $input = darray["a" => 1, "b" => 2];
5 array_shift(inout $input);
6 var_dump($input);
9 function b() {
10 $input = darray["a" => 1, 23 => 2];
11 array_shift(inout $input);
12 var_dump($input);
15 function c() {
16 $input = darray["a" => 1, -23 => 2];
17 array_shift(inout $input);
18 var_dump($input);
21 function d() {
22 $input = varray["orange", "banana", "apple", "raspberry"];
23 $fruit = array_shift(inout $input);
24 var_dump($input);
25 var_dump($fruit);
29 <<__EntryPoint>>
30 function main_array_shift() {
31 a();
32 b();
33 c();
34 d();