function repeatCharacter(%char,%num){ for(%i=0;%i<%num;%i++) %ret = %ret @ %char; return %ret;}
echo(repeatCharacter("o",5));
I don't know why I didn't think of that, I guess it's too elegant. Thanks