Posted by Janwillem Borleffs on 08/21/06 12:46
laredotornado@zipmail.com schreef:
> Wanted to see if there was an even shorter way to do this using PHP
> 4.3. I have a GIF of a star. In my code, I have a variable, $rating,
> which could be any number between 1 and 5. I want to display a star
> for each rating point. Is there an even shorter way to output that
> code other than the traditional for loop?
>
http://www.php.net/str_repeat
JW
Navigation:
[Reply to this message]
|