I don't know if the function exists, but it should be easy to create. Something like this:
function replicate($Repeat, $RepeatCount) { $Results = ""; if ( ($RepeatCount < 1) or ($Repeat == "") ) return false; for ($i=0; $i < $RepeatCount;$i++) $Results .= $Repeat; return $Results; } > -----Original Message----- > I'd like to print one or more specific characters many times. > For example, let's say I'd like to display the '*' 50 times > on one line. Is there a function that will do this? Something like: > > ? replicate('*',50); **************************************************************************** This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php