Looking for a function to split numbers into an array for use in a simple
graphical counter.
Objective:
$count = 12345
//want to end up with
$array[0]=1
$array[1]=2
$array[2]=3 //and so on then I can do this
$size=sizeof($a rray);
for ($r = 0; $r == $size; $r++) {
echo "<img border='0' src='_borders/$array[$r].gif'> ";
}
Note am using PHP4
Regards
Dynamo
graphical counter.
Objective:
$count = 12345
//want to end up with
$array[0]=1
$array[1]=2
$array[2]=3 //and so on then I can do this
$size=sizeof($a rray);
for ($r = 0; $r == $size; $r++) {
echo "<img border='0' src='_borders/$array[$r].gif'> ";
}
Note am using PHP4
Regards
Dynamo
Comment