src/Budkit/Protocol/Input.php
public function getArray($name, $default = [], $verb = 'get', $options = array())
    {

        if (strtolower($verb) == 'request') {
            $verb = $this->getVerb();
        }

        //just form casting
        $verb = strtolower($verb);

        if (!($input = $this->data($verb))) {
            return $default;
        }

        //Undefined
        if (empty($name) || !isset($input) || !isset($input[$name])) {
            if (isset($default) && !empty($default)) {
                return $default;
            } else {
                return null; //nothing for that name;
            }
        }

        //FILTER_SANITIZE_STRING
        //FILTER_SANITIZE_STRIPPED
        //\IS\HTML;
        $filter = \IS\CUSTOM;  //FILTER_CALLBACK;
        $options = array(
            "flags" => FILTER_REQUIRE_ARRAY,
        );

        //uhhhnrrr...
        $array = $input[$name];

        //Use the call back filter to clean this array
        //Sub processing for HTML and all that?
        return (array)$array;
    }
public function getArray($name, $default = [], $verb = 'get', $options = array())
    {

        if (strtolower($verb) == 'request') {
            $verb = $this->getVerb();
        }

        //just form casting
        $verb = strtolower($verb);

        if (!($input = $this->data($verb))) {
            return $default;
        }

        //Undefined
        if (empty($name) || !isset($input) || !isset($input[$name])) {
            if (isset($default) && !empty($default)) {
                return $default;
            } else {
                return null; //nothing for that name;
            }
        }

        //FILTER_SANITIZE_STRING
        //FILTER_SANITIZE_STRIPPED
        //\IS\HTML;
        $filter = \IS\CUSTOM;  //FILTER_CALLBACK;
        $options = array(
            "flags" => FILTER_REQUIRE_ARRAY,
        );

        //uhhhnrrr...
        $array = $input[$name];

        //Use the call back filter to clean this array
        //Sub processing for HTML and all that?
        return (array)$array;
    }
public function getArray ( $ name , $ default = [ ] , $ verb = 'get' , $ options = array ( ) ) { if ( strtolower ( $ verb ) == 'request' ) { $ verb = $ this -> getVerb ( ) ; } //just form casting $ verb = strtolower ( $ verb ) ; if ( ! ( $ input = $ this -> data ( $ verb ) ) ) { return $ default ; } //Undefined if ( empty ( $ name ) || ! isset ( $ input ) || ! isset ( $ input [ $ name ] ) ) { if ( isset ( $ default ) && ! empty ( $ default ) ) { return $ default ; } else { return null ; //nothing for that name; } } //FILTER_SANITIZE_STRING //FILTER_SANITIZE_STRIPPED //\IS\HTML; $ filter = \ IS \ CUSTOM ; //FILTER_CALLBACK; $ options = array ( "flags" => FILTER_REQUIRE_ARRAY , ) ; //uhhhnrrr... $ array = $ input [ $ name ] ; //Use the call back filter to clean this array //Sub processing for HTML and all that? return ( array ) $ array ; }
Returns a cleaned Array

@param string $name
@param string $verb
@param array $flags
Returns a cleaned Array