repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Updating submodules
[hiphop-php.git]
/
hphp
/
test
/
slow
/
ext_array
/
array_unshift.php
blob
11d441ab2da71c974cf8562700bf5a9b54d94640
1
<
?hh
2
3
4
<<
__EntryPoint
>>
5
function
main_array_unshift
() {
6
$q
=
varray
[
"orange"
,
"banana"
];
7
array_unshift
(
inout
$q
,
"apple"
,
"raspberry"
);
8
var_dump
(
$q
);
9
10
$q
=
darray
[
0
=>
"orange"
,
1
=>
"banana"
,
"a"
=>
"dummy"
];
11
unset
(
$q
[
'a'
]);
12
array_unshift
(
inout
$q
,
"apple"
,
"raspberry"
);
13
var_dump
(
$q
);
14
}