static function getInputValue(string $var, $from = false, bool $ignoreCase = false, $default = null)
    {
        if ($from === false) {
            foreach (Request::INPUT_AVAILABLE_SCOPES as $scope) {
                $input = self::getInputValue($var, $scope, $ignoreCase);
                if ($input) {
                    return $input;
                }
            }
        }
        else {
            $scope = self::$get;
            if (in_array(strtolower($from), Request::INPUT_RAW_SCOPES)) {
                parse_str(file_get_contents("php://input"), $scope);
            }
            elseif (strtolower($from) === 'post') {
                $scope = self::$post;
            }
            
            return ArrayUtils::getArrayValueForKeyOrDefault($scope, $var, $default, $ignoreCase);
        }
    }
static function getInputValue(string $var, $from = false, bool $ignoreCase = false, $default = null)
    {
        if ($from === false) {
            foreach (Request::INPUT_AVAILABLE_SCOPES as $scope) {
                $input = self::getInputValue($var, $scope, $ignoreCase);
                if ($input) {
                    return $input;
                }
            }
        }
        else {
            $scope = self::$get;
            if (in_array(strtolower($from), Request::INPUT_RAW_SCOPES)) {
                parse_str(file_get_contents("php://input"), $scope);
            }
            elseif (strtolower($from) === 'post') {
                $scope = self::$post;
            }
            
            return ArrayUtils::getArrayValueForKeyOrDefault($scope, $var, $default, $ignoreCase);
        }
    }
static function getInputValue ( string $ var , $ from = false , bool $ ignoreCase = false , $ default = null ) { if ( $ from === false ) { foreach ( Request :: INPUT_AVAILABLE_SCOPES as $ scope ) { $ input = self :: getInputValue ( $ var , $ scope , $ ignoreCase ) ; if ( $ input ) { return $ input ; } } } else { $ scope = self :: $ get ; if ( in_array ( strtolower ( $ from ) , Request :: INPUT_RAW_SCOPES ) ) { parse_str ( file_get_contents ( "php://input" ) , $ scope ) ; } elseif ( strtolower ( $ from ) === 'post' ) { $ scope = self :: $ post ; } return ArrayUtils :: getArrayValueForKeyOrDefault ( $ scope , $ var , $ default , $ ignoreCase ) ; } }
Get value of variable passed through HTTP POST, GET, PUT or DELETE.

@param string $var
The name of the variable to get the value for.

@param string $from
Specify where to get the variable from (post, get, put or delete).

@param bool $ignoreCase
[optional]
Whether to treat lowercase and uppercase letters as equivalent during the search.

@param mixed $default
[optional]
Value to return if the value is not found.

@return mixed Value of variable passed through HTTP POST, GET, PUT or DELETE.
Get value of variable passed through HTTP POST GET PUT or DELETE .