hex counter
Posted: Tue Dec 13, 2005 3:46 pm
Is there any way to create a counter in hex? an example would be count from 0 - F.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
for ($x=0;$x<10000;$x++) {
echo dechex($x);
}Code: Select all
for ($x=0x00; $x<=0x0F; $x++)
{
echo dechex($x).'<br />';
}