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
add bitset operations and tests
[hiphop-php.git]
/
hphp
/
test
/
slow
/
ext_array
/
array_pop.php
blob
8544093c9366ff81b050917fd533ed3557fc3dda
1
<
?php
2
3
function
a
() {
4
$input
=
array
(
"orange"
,
"banana"
,
"apple"
,
"raspberryu"
);
5
$fruit
=
array_pop
(
$input
);
6
var_dump
(
$input
);
7
}
8
9
function
b
() {
10
$input
=
array
(
"orange"
);
11
$fruit
=
array_pop
(
$input
);
12
array_push
(
$input
,
"banana"
);
13
var_dump
(
$input
);
14
var_dump
(
$fruit
);
15
}
16
17
a
();
18
b
();
19