src/Core.php
/**
     * Fetches as many of the specified list of arguments from $_REQUEST that
     * it can retrieve.
     * This will NOT throw an exception or return false if it fails to find one.
     *
     * @param array $args - array of all the argument names.
     * @param array $input_array - array from which we are pulling the optional args.
     *
     * @return values - array of retrieved values
     */
Fetches as many of the specified list of arguments from $_REQUEST that
it can retrieve.
This will NOT throw an exception or return false if it fails to find one.

@param array $args - array of all the argument names.
@param array $input_array - array from which we are pulling the optional args.

@return values - array of retrieved values
Fetches as many of the specified list of arguments from $_REQUEST that it can retrieve . This will NOT throw an exception or return false if it fails to find one . @param array $args - array of all the argument names . @param array $input_array - array from which we are pulling the optional args . @return values - array of retrieved values
public static function fetchOptionalArgsFromArray($args, $input_array)
    {
        $values = array();
        foreach ($args as $arg)
        {
            if (isset($input_array[$arg]))
            {
                $values[$arg] = $input_array[$arg];
            }
        }
        return $values;
    }
public static function fetchOptionalArgsFromArray ( $ args , $ input_array ) { $ values = array ( ) ; foreach ( $ args as $ arg ) { if ( isset ( $ input_array [ $ arg ] ) ) { $ values [ $ arg ] = $ input_array [ $ arg ] ; } } return $ values ; }
Fetches as many of the specified list of arguments from $_REQUEST that
 it can retrieve.
Fetches as many of the specified list of arguments from $_REQUEST that it can retrieve .