lib/Lime/App.php
public function param($index=null, $default = null, $source = null) {

        $src = $source ? $source : $_REQUEST;
        $cast = null;

        if (\strpos($index, ':') !== false) {
            list($index, $cast) = \explode(':', $index, 2);
        }

        $value = fetch_from_array($src, $index, $default);

        if ($cast) {

            if (\in_array($cast, ['bool', 'boolean']) && \is_string($value) && \in_array($cast, ['true', 'false'])) {
                $value = $value == 'true' ? true : false;
            }

            \settype($value, $cast);
        }

        return $value;
    }
public function param($index=null, $default = null, $source = null) {

        $src = $source ? $source : $_REQUEST;
        $cast = null;

        if (\strpos($index, ':') !== false) {
            list($index, $cast) = \explode(':', $index, 2);
        }

        $value = fetch_from_array($src, $index, $default);

        if ($cast) {

            if (\in_array($cast, ['bool', 'boolean']) && \is_string($value) && \in_array($cast, ['true', 'false'])) {
                $value = $value == 'true' ? true : false;
            }

            \settype($value, $cast);
        }

        return $value;
    }
public function param ( $ index = null , $ default = null , $ source = null ) { $ src = $ source ? $ source : $ _REQUEST ; $ cast = null ; if ( \ strpos ( $ index , ':' ) !== false ) { list ( $ index , $ cast ) = \ explode ( ':' , $ index , 2 ) ; } $ value = fetch_from_array ( $ src , $ index , $ default ) ; if ( $ cast ) { if ( \ in_array ( $ cast , [ 'bool' , 'boolean' ] ) && \ is_string ( $ value ) && \ in_array ( $ cast , [ 'true' , 'false' ] ) ) { $ value = $ value == 'true' ? true : false ; } \ settype ( $ value , $ cast ) ; } return $ value ; }
Get request variables
@param  String $index
@param  Mixed $default
@param  Array $source
@return Mixed
Get request variables