This is a discussion on Printing "n" characters within the PHP Language forums, part of the PHP Programming Forums category; Hi, I'm using PHP 5. If I want to print out "n" of the same character (e....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
laredotornado@zipmail.com:
> I'm using PHP 5. If I want to print out "n" of the same character > (e.g. "\t") where n is an integer greater than 0, is there a simple > way to do this other than iterating over a for loop? http://www.php.net/manual/en/function.str-repeat.php -- Jock |
|
|||
|
laredotornado@zipmail.com wrote:
> Hi, > > I'm using PHP 5. If I want to print out "n" of the same character > (e.g. "\t") where n is an integer greater than 0, is there a simple > way to do this other than iterating over a for loop? > > Thanks, - Dave > http://us.php.net/manual/en/function.str-repeat.php -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ================== |