2017年9月29日
摘要: 1.nl2br( ) — 在字符串所有新行之前插入 HTML 换行标记 string nl2br ( string $string [, bool $is_xhtml = true ] ) 在字符串 string 所有新行之前插入 '<br />' 或 '<br>',并返回。 输出html结果: 2 阅读全文
posted @ 2017-09-29 18:30 忆华灯纵博 阅读(230) 评论(0) 推荐(0) 编辑
摘要: preg_replace — 执行一个正则表达式的搜索和替换 mixed preg_replace ( mixed $pattern , mixed $replacement , mixed $subject [, int $limit = -1[, int &$count ]] ) 代码: 显示结 阅读全文
posted @ 2017-09-29 18:28 忆华灯纵博 阅读(167) 评论(0) 推荐(0) 编辑
摘要: htmlspecialchars:将特殊字符转换为 HTML 实体 string htmlspecialchars ( string $string [, int $flags = ENT_COMPAT | ENT_HTML401 [, string $encoding = ini_get("def 阅读全文
posted @ 2017-09-29 15:51 忆华灯纵博 阅读(276) 评论(0) 推荐(0) 编辑