note 106571 deleted from class.invalidargumentexception by levim

From: Date: Tue, 25 Feb 2014 20:33:46 +0000
Subject: note 106571 deleted from class.invalidargumentexception by levim
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-198711@lists.php.net to get a copy of this message
Note Submitter: Levi Morrison ---- Note that Joey's code showing an example of using InvalidArgumentException uses is_int, but probably should use filter_var($int, FILTER_VALIDATE_INT). Also, whether you should throw this function or OutOfRangeException when dealing with arrays is a bit unclear. My personal preference is to throw InvalidArgumentException.

« previous php.notes (#198711) next »