On Tue, 1 Feb 2005, Sean Coates wrote:

> Rasmus Lerdorf wrote:
> > As someone suggested, if
> > the filter function could do $GET = filt(GET,'*',FILTER_TAGS) or
> > something to that effect then an individual script could in one shot
> > filter all GET data even if the default ini filter wasn't in place.
>
> Might I suggest:
>
> foo_filter($type, $keys, FILTER_TAGS);
>
> where $type and $keys are strings (as originally intended), or they
> could be arrays of types and keys (similar to how str_replace works).

It's not a filter afaics... the idea was to use:

$variable = funcname(SUPERGLOBAL, 'varname', filtertype);

this function should not modify any existing variable, but just be used
to extract variables from the request data. That would make the most
sense, and it's the most readable way (of being aware of those issues).

Derick

-- 
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to