Invalid hex returned from dechex();
- From: "d43m0n AT shaw DOT ca" <barryd.it@xxxxxxxxx>
- Date: 27 Nov 2006 08:50:08 -0800
Hello,
I'm trying to find a valid hex notation return that consists of 2, 4,
6, 8... digits of hexadecimal, numbers, simply from a loop.
<?php
for ($i = '0'; $i <= '10000'; $i++) {
echo dechex($i) . "\n";
}
?>
This should return valid hex notation, however, this is the return...
0
1
2
3
4
5
6
7
8
9
a
b
c
d
e
f
10
11
12
....
100
101
102
....
Can anyone point a proper procedure for returning a valid notion for
hex, for such a simple task, and why the php developers are sitting on
their a** about this one.
Source: http://en.wikipedia.org/wiki/Hexadecimal
Thankyou.
.
- Prev by Date: Re: [PHP] Running AMP from CD
- Next by Date: Re: [PHP] Running AMP from CD
- Previous by thread: binding Oracle variables on a loop
- Next by thread: Tidy HTML source?
- Index(es):
Relevant Pages
|