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_walk_recursive.php
blob
1f6590fde46d376bb6bb2e831e47ac7387a2f791
1
<
?php
2
3
function
test_print
(
$item
,
$key
) {
4
echo
"
$key
:
$item\n
"
;
5
}
6
7
$sweet
=
array
(
"a"
=>
"apple"
,
"b"
=>
"banana"
);
8
$fruits
=
array
(
"sweet"
=>
$sweet
,
"sour"
=>
"lemon"
);
9
10
array_walk_recursive
(
$fruits
,
"test_print"
);