Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有很多使用此功能的代码。但现在我需要做与 PHP 5.1.6 兼容的代码(我无权更新 PHP 或安装任何扩展),所以我需要一些用户定义的函数来声明它。我在谷歌上搜索,但没有成功。你知道如何解决这个问题吗?谢谢,RS。
过滤器的功能非常强大,而且是一个很大的工作重现它们。
如果你想重现它,你可以这样做:
if(!function_exists('filter_input_array')) { function filter_input_array($type, $definition) { // Write code here } }