$value){ $key_value[$key] = self::escape($value); } return $key_value; } else { return self::escape($key_value); } } /** * Returns the value stored in the index in the global variable _GET. * * @param string $key * Name of the variable contained in _GET. * * @return array|string * Value from the global _GET variable. */ public static function get($key = '') { return self::request($_GET, $key); } /** * Returns the value stored in the index in the global _POST variable. * * @param string $key * Name of the variable contained in _POST. * * @return array|string * Value from the global _POST variable. */ public static function post($key = '') { return self::request($_POST, $key); } /** * Returns the value stored in the index in the global _REQUEST variable. * * @param string $key * Name of the variable contained in _REQUEST. * * @return array|string * Value from the global _REQUEST variable. */ public static function getOrPost($key = '') { return self::request($_REQUEST, $key); } }