View Single Post
Old 02-25-2004, 10:33 AM  
Posse Member
Join Date: Dec 2002
Posts: 1,956

u sure have odd ideas...
anyway, using his code, it can't be done.
but u can just change the line to something like that (un-tested):

return substr("PROGRESSBAR-PROGRESS",0,$bars).str_repeat("#",20-$bars);

Your string must be 20 chars long, because the $bars variable has a max of 20... So when complete, it will show chars 0 to 19 (20 chars) of your string, and 20-20=0 times #.
Mouton is offline