untested!
<?
if (strlen($word) < 17) { $padding = 17-strlen($word); $word .= str_repeat('
', $padding); unset($padding); }
?>
The reason for the if statement is that str_repeat will produce an error if
17-strlen($word) <= 0 and that'll break your script....of course you could
remove the if state if you're positive the # of characters in $word never
exceeds 16.
Sincerely,
Craig Vincent
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]