String trim chop and length
<? $original = " AAAAAAA "; $chopped = chop($original); $ltrimmed = ltrim($original); $trimmed = trim($original); print("The original is '$original'<BR>"); print("Its length is " . strlen($original) . "<BR>"); print("The chopped version is '$chopped'<BR>"); print("Its length is " . strlen($chopped) . "<BR>"); print("The ltrimmed version is '$ltrimmed'<BR>"); print("Its length is " . strlen($ltrimmed) . "<BR>"); print("The trimmed version is '$ltrimmed'<BR>"); print("Its length is " . strlen($trimmed) . "<BR>"); ?>