i want to make a hexadecimal value for every second in a 24 hours period, which i thought the code would look simular to such:
[php]
ini_set(‘memory_limit’,‘128M’);
ini_set(‘max_execution_time’, -1);
function str_hex($string){
$hex=’’;
for ($i=0; $i < strlen($string); $i++){
$hex .= dechex(ord($string[$i]));
}
return $hex;
}
for($H=0;$H!=24;$H++){
for($M=0;$M!=60;$M++){
for($S=0;$S!=60;$S++){
$time = $H.":".$M.":".$S;
echo “’”.str_hex($time)."’,";
}
}
}
[/php]
i am expecting 86,400 results, but am getting only 320.