php中trim是做什么用的?8
发布网友
发布时间:2023-10-08 19:43
我来回答
共2个回答
热心网友
时间:2024-12-04 09:18
trim用来把字符串前后的空白去处,删除以下内容:
" " (ASCII 32 (0x20)), an ordinary space.
"\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.
热心网友
时间:2024-12-04 09:19
我只能告诉你trim函数的作用,
trim()取消字符串前后空格的
最常用的地方是给数据库传值用的
我只懂这么多