⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 arrayrule.class.php

📁 一个用PHP编写的
💻 PHP
字号:
<?php    lt_include(PLOG_CLASS_PATH."class/data/validator/rules/rule.class.php");		/**	 * \ingroup Validator_Rules	 *	 * Implements a rule that checks if the input is a valid php array (used	 * in cases when we'd like to validate if something coming from $_GET or $_POST	 * is an array)	 */    class ArrayRule extends Rule    {        /**         * Initializes the rule         */        function ArrayRule()        {            $this->Rule();        }        /**         * Validates the data.         *         * @param value The array that we'd like to validate         */        function validate($value)        {			return( is_array($value));        }    }?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -