|
发表于 13-2-2006 04:48 PM
|
显示全部楼层
可以用来删处多余的空位!!
string trim ( string str [, string charlist] )
如果没有给第2个parameter,那么将会删除以下的element:
"\t" (ASCII 9 (0x09)), a tab.
"\n" (ASCII 10 (0x0A)), a new line (line feed).
"\r" (ASCII 13 (0x0D)), a carriage return.
"\0" (ASCII 0 (0x00)), the NUL-byte.
"\x0B" (ASCII 11 (0x0B)), a vertical tab. |
|