<?
nl2br() // 函数在字符串中的每个新行 (\n) 之前插入 HTML 换行符 (<br />)
addslashes()// 函数在指定的预定义字符前添加反斜杠
// '
// "
// \
// NULL
stripslashes() // 函数删除由 addslashes() 函数添加的反斜杠
htmlspecialchars() // 函数把一些预定义的字符转换为 HTLM实体
htmlentities() // 转换所有html标记为相应的html实体
// & => &
// " => "
// ' => '
// < => <
// > => >
chop() // 除去字符串右边的空格
trim() // 除去字符串中所有空格
ltrim() // 除去字符串左边空格
explode() // 分割字符串为数组
implode() // 连接数组为字符串
strtoupper(); // 转换为大写
strtolower(); // 转换为小写
ucfirst(); // 只转换第一个字符为大写
ucwords(); // 转换每个words的第一个字母为大写
strip_tags(); // 去除html标签
版权归属:
Malson
许可协议:
MIT