Yes please?
PHP Code:
function repeat(char,num) {
temp.output = "";
for (temp.i=0;i<num;i++) output @= char;
return output;
}
I ran into a script earlier that made me wish there was a repeat character function. I think something like this would be useful for anyone who needs to format text.
Also, with these functions are variable names an issue? For example, if I use shared.repeat(" ",5) in a loop that also uses temp.i, is it going to break?