RE: [PHP] Validation function doesn't work (sort of...)
| From: | Jonathan Wilkes | Date: | Tue, 27 May 2003 15:52:35 +0000 |
| Subject: | RE: [PHP] Validation function doesn't work (sort of...) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-149131@lists.php.net to get a copy of this message | ||
Shouldn't your equality check be "==" instead of "===" ?
Also, try modifying your loop so that after the first correct match, it does
a return true;
that way, you don't need to process the entire loop