in reply to Making a variable tab string
for ($i = 0; $i < $numTabs; $i++) { $tabs .= "\t"; }
But, like jwkrahn wrote: you might as well use x instead of the loop, so this becomes:
$tabs .= "\t" x $numTabs;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Making a variable tab string
by sandrider (Acolyte) on Feb 22, 2007 at 00:08 UTC |