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
introduce array_multisort1, ..., array_multisort9
[hiphop-php.git]
/
hphp
/
test
/
slow
/
ext_array
/
array_replace_recursive.php
blob
8c02c4a6e24815629ff54bb5c2d76a2a57b686f8
1
<
?hh
2
3
4
<<
__EntryPoint
>>
5
function
main_array_replace_recursive
() {
6
$ar1
=
array
(
7
"color"
=>
array
(
"favoritte"
=>
"red"
),
8
5
9
);
10
$ar2
=
array
(
11
10
,
12
array
(
"color"
=>
array
(
"favorite"
=>
"green"
,
"blue"
))
13
);
14
$r
=
array_replace_recursive
(
$ar1
,
array
(
$ar2
));
15
var_dump
(
$r
);
16
}