I need to print some data (a little bit strange formatted). I was writing it in PHP with if ($num%10==9) but it was impossible for me to get correct output.
So take
You need to print the numbers 1 to 30 in hexadecimal notation. Try this method for each line:
dechex ( int $number )