Tjoumaidis Tasos wrote:

Hello to everybody,

I just want to display a character like D x times like DDD where x is a
$variable i get from the database i cannot make it work like it is on
perl (i don't even know if it is working the same way) and i can't find
a reference in the manual on php.net, maybe it's a silly question but i
am stuck at this moment.

Thx in advance.

there propably is a faster way, but you can use this:
$max = the amount of times you want it to show :) //eg 6 would give dddddd
while($i <= $max){
	echo 'd'; //or any character you want
	$i++;
}


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to