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
/
bad
/
ext-standard-math
/
octdec_basic.php
blob
49be6ca98b86feca6879c17260fe876951487a3c
1
<
?php
2
$values
=
array
(
01234567
,
3
0567
,
4
017777777777
,
5
020000000000
,
6
0x1234ABC
,
7
12345
,
8
'01234567'
,
9
'0567'
,
10
'017777777777'
,
11
'020000000000'
,
12
'0x1234ABC'
,
13
'12345'
,
14
31101.3
,
15
31.1013
e5
,
16
true
,
17
false
,
18
null
);
19
20
for
(
$i
=
0
;
$i
<
count
(
$values
);
$i
++
) {
21
$res
=
octdec
(
$values
[
$i
]);
22
var_dump
(
$res
);
23
}
24
?
>