note 104669 deleted from class.lengthexception by danbrown

From: Date: Wed, 29 Jun 2011 15:23:47 +0000
Subject: note 104669 deleted from class.lengthexception by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-181042@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- <?php function check_hash($hash) { if (strlen($hash) != 32) { throw new LengthException; } // ... } ?>

« previous php.notes (#181042) next »