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_diff_assoc.php
blob
194e5274c5f0a6b82eb74b6e534797bbc8cd2b8d
1
<
?php
2
3
function
a
() {
4
$array1
=
array
(
5
"a"
=>
"green"
,
6
"b"
=>
"brown"
,
7
"c"
=>
"blue"
,
8
"red"
9
);
10
$array2
=
array
(
11
"a"
=>
"green"
,
12
"yellow"
,
13
"red"
14
);
15
16
$result
=
array_diff_assoc
(
$array1
,
$array2
);
17
var_dump
(
$result
);
18
}
19
20
function
b
() {
21
$array1
=
array
(
0
,
1
,
2
);
22
$array2
=
array
(
"00"
,
"01"
,
"2"
);
23
$result
=
array_diff_assoc
(
$array1
,
$array2
);
24
var_dump
(
$result
);
25
}
26
27
a
();
28
b
();