/** * 获取 `php://input` 数据 * * $url = HttpIO::INPUT('url'); * * @param string $key * @param string $type 返回类型 */ public static function INPUT($key = null, $type = null) { return HttpIO::_get_format_data('_INPUT', $key, $type); }
/** * 获取$_REQUEST数据 * * @param string $key * @param string 返回类型,false或不传,则返回原始数据 例:HttpIO::PARAM_TYPE_URL */ public static function REQUEST($key = null, $type = null) { return HttpIO::_get_format_data('_REQUEST', $key, $type); }