rtrim($s1[,$s2]) or chop($s1[,$s2]) |
returns a copy of $s1 with whitespace stripped from the end. $s2 is the list containing the characters to be stripped. |
ltrim(……) |
is similar but strips whitespace from the beginning. |
trim(……) |
is similar but strips whitespace from both the beginning and end. |
wordwrap($s1[,$i=75[,$s2=”\n”[,$b=false]]]) |
returns a copy of $s1 wrapped to $i characters using $s2 as a string break character. If $b is true, a word at the end is broken so that the string is wrapped with a width of exactly $i characters. |