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-math
/
decbin_basic.php
blob
f159c402c4e94d57427784636b549dbc5f3d54c1
1
<
?php
2
$values
=
array
(
10
,
3
3950.5
,
4
3.9505
e3
,
5
039
,
6
0x5F
,
7
"10"
,
8
"3950.5"
,
9
"3.9505e3"
,
10
"039"
,
11
"0x5F"
,
12
true
,
13
false
,
14
null
,
15
);
16
17
for
(
$i
=
0
;
$i
<
count
(
$values
);
$i
++
) {
18
$res
=
decbin
(
$values
[
$i
]);
19
var_dump
(
$res
);
20
}
21
?
>