0-1000, different colors
Posted: Fri Aug 22, 2008 9:30 am
Hi everyone!
I just became a member and therefore it means It's my first post. I'm new to this PHP, so please do not be offended if my questions are too basic.
My question:
I need to print numbers from zero to 1000, with each of them in different color. But i could not find any code for PHP in which coloring is explained. I tried to apply HTML codes into <?php ?>, but again i am not sure if it works at all.
here is my code:
Dont know what to do, would be happy if you could help me out.
Thanks
I just became a member and therefore it means It's my first post. I'm new to this PHP, so please do not be offended if my questions are too basic.
My question:
I need to print numbers from zero to 1000, with each of them in different color. But i could not find any code for PHP in which coloring is explained. I tried to apply HTML codes into <?php ?>, but again i am not sure if it works at all.
here is my code:
Code: Select all
<?php
for ($x=0; $x<=1000; $x++)
{
print $x . " ";
}
?>Thanks