首页 未命名内容详情

zblog函数之FormatString 格式化字符串

2026-01-10 2 897698882
zblog函数之FormatString 格式化字符串

站点名称:zblog函数之FormatString 格式化字符串

所属分类:未命名

官方网址:

SEO查询: 爱站网 站长工具

进入网站

站点介绍

FormatString这个函数是用来过滤字符串的,通常用在获取用户提交的内容过滤上面。函数构造在“c_system_common.php”的1476行。

函数使用示例:

<?php echo FormatString($source, $para); ?>

函数参数:

$source:字符串,必须值;

$para:正则表达式,可用[html-format]|[nohtml]|[noscript]|[enter]|[noenter]|[filename]|[normalname]或自定义表达式,必须值;

函数输出:

输出字符串,输出内容为根据指定正则过滤后的字符串;