函数名称 | 函数作用 |
---|---|
chr | 指定ASCII值返回字符 |
ord | 字符串第一个字符的ASCII值 |
addslashes | 转义 |
stripslashes | 删除转义斜杠 |
implode | 连接数组 |
explode | 分隔数组 |
lcfirst | 首字母转小写 |
ucfirst | 首字母转大写 |
ltrim | 移除左侧字符 |
rtrim | 移除右侧字符 |
trim | 移除左右两侧字符 |
strcmp | 比较字符串大小 |
strip_tags | 剥除HTML和PHP标签 |
strrev | 字符串反转 |
strtolower | 转为小写 |
strtoupper | 转为大写 |
strpos | 返回查找子字符串出现位置,没找到返回FALSE |
strstr | 返回查找子字符串出现之后的部分,未找到返回FALSE |
网友评论