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
import zend standard tests
[hiphop-php.git]
/
hphp
/
test
/
zend
/
good
/
ext-standard-array
/
array_keys_variation_003.php
blob
e57f39c45933d383725e78c5640fcbea44b4dca8
1
<
?php
2
3
echo
"*** Testing array_keys() on all the types other than arrays ***
\n
"
;
4
$types_arr
=
array
(
5
TRUE
=>
TRUE
,
6
FALSE
=>
FALSE
,
7
1
=>
1
,
8
0
=>
0
,
9
-
1
=> -
1
,
10
"1"
=>
"1"
,
11
"0"
=>
"0"
,
12
"-1"
=>
"-1"
,
13
NULL
,
14
array
(),
15
"php"
=>
"php"
,
16
""
=>
""
17
);
18
$values
=
array
(
TRUE
,
FALSE
,
1
,
0
, -
1
,
"1"
,
"0"
,
"-1"
,
NULL
,
array
(),
"php"
,
""
);
19
foreach
(
$values
as
$value
){
20
var_dump
(
$value
);
21
var_dump
(
array_keys
(
$types_arr
,
$value
));
22
}
23
24
echo
"Done
\n
"
;
25
?
>