note 108381 deleted from filter.filters.validate by danbrown

From: Date: Thu, 10 May 2012 17:04:10 +0000
Subject: note 108381 deleted from filter.filters.validate by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-187640@lists.php.net to get a copy of this message
Note Submitter: robertvandell at comcast dot net ---- @Tom If you read the notes correctly for the first row in the table above, you can see that the documentation reads 'If FILTER_NULL_ON_FAILURE is set, FALSE is returned only for "0", "false", "off", "no", and "", and NULL is returned for all non-boolean values.' In your example, the last piece of that sentence is relevant because you are not passing a variable at all you are passing a value. Therefore there is no variable passed and as such the non-existent variable is not a valid boolean value. This is the correct behavior. Variables are references to values in memory.

« previous php.notes (#187640) next »