final public static function checkGlobal ($option='') : array
	{
		if (!static::hasValue($option)) new ErrorCode(1001);
		$fieldGlobals = ["POST","GET","REQUEST","FILES","COOKIE","SESSION"];
		if (!in_array(strtoupper($option), $fieldGlobals)) 
			new ErrorCode(1001);
		else
			return $GLOBALS["_".strtoupper($option)];
	}
final public static function checkGlobal ($option='') : array
	{
		if (!static::hasValue($option)) new ErrorCode(1001);
		$fieldGlobals = ["POST","GET","REQUEST","FILES","COOKIE","SESSION"];
		if (!in_array(strtoupper($option), $fieldGlobals)) 
			new ErrorCode(1001);
		else
			return $GLOBALS["_".strtoupper($option)];
	}
final public static function checkGlobal ( $ option = '' ) : array { if ( ! static :: hasValue ( $ option ) ) new ErrorCode ( 1001 ) ; $ fieldGlobals = [ "POST" , "GET" , "REQUEST" , "FILES" , "COOKIE" , "SESSION" ] ; if ( ! in_array ( strtoupper ( $ option ) , $ fieldGlobals ) ) new ErrorCode ( 1001 ) ; else return $ GLOBALS [ "_" . strtoupper ( $ option ) ] ; }
Used for selecting super global.
@param string $option
@return array
Used for selecting super global .