Repeat something n times without loop.
Posted: Fri Aug 29, 2003 5:23 am
Hi,
I'm trying to output a character n times, in my case I need it for indention:
$level = 1 -> output " "
$level = 2 -> output " "
$level = 3 -> output " "
and so on. Can I do it without constructing a loop?I think I read about a function to do this a while ago, can't seem to find it right now though.
Thanks,
Tyler
I'm trying to output a character n times, in my case I need it for indention:
$level = 1 -> output " "
$level = 2 -> output " "
$level = 3 -> output " "
and so on. Can I do it without constructing a loop?I think I read about a function to do this a while ago, can't seem to find it right now though.
Thanks,
Tyler