Saturday, March 27, 2010

string truncation

is there an easy way to remove x ammount of characters from a
string value??



IE:



var greeting = ''hello'';

(truncate 3 char from the end);

trace(greeting) // ''he''string truncation
you can use the substr() or substring() methods of
strings.

No comments:

Post a Comment