Hi ALL 🙂
I'm having diffuculty being able to line up text in a dynamically created swf from php. problem is in swf it cant take "\t" or char(9) as input so what I'm currently doing is
looping through $var[$i] reading the length through strlen($var) and then adding " " depending on the length of the string. issue is that although this nearly lines up the values it doesnt line them up as each character have a different length.
so my chart looks like this
bob 4
fred 7
ect 3
and I would like them to line up.
is it possible to do something like
strlen(($var."\t"."\t.")) (<-- I know this doesnt work as strlen reads \t as \t rather than tab.) and then using that to add the correct number of spaces to string?
any suggestions would be much appreciated.
Cheers
:evilgrin: