note 90639 deleted from function.ereg by danbrown

From: Date: Sat, 02 May 2009 14:59:35 +0000
Subject: note 90639 deleted from function.ereg by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-154145@lists.php.net to get a copy of this message
Note Submitter: midian at cox dot net ---- Concerning the 'valid postal code' bit from 10 Aug - You need the '?' after {4}) to make it optional, occurring 0 or 1 time. $error_code=(ereg("^[0-9]{5}(-[0-9]{4})?$",$zip))? NULL:1;

« previous php.notes (#154145) next »