首页 > PHP资讯 > PHP培训技术 > PHP 过滤库 Filterus

PHP 过滤库 Filterus

PHP培训技术

Filterus 是一个 PHP 过滤库,它不仅仅可以验证,也可以过滤匹配预设模式的输出。

示例代码:

$f = Filter::factory('string,max:5');$str = 'This is a test string'; $f->validate($str); // false$f->filter($str); // 'This '
本文由欣才IT学院整理发布,未经许可,禁止转载。