On Thu, Feb 17, 2005 at 12:21:45PM -0800, Andi Gutmans wrote:
> Yeah I realize it's different but my idea was that if you have something 
> like:
> filter_get(POST, "foo", FILTER_NUMBER) the semantics of this or some other 
> function could be:
> if (isset($_POST["foo"]) && is_number(.....
> 
> I think in most cases that would do and doesn't require to add/change 
> opcodes and language constructs...

Yeah, but... what if one wants to call it on a variable that's not part of 
the superglobals?  Plus that construct doesn't provide a way to set the 
default value for the particular variable at hand.

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409

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

Reply via email to