Re: Can't escape characters in php??
| From: | Marco Tabini | Date: | Thu, 14 Nov 2002 23:40:28 +0000 |
| Subject: | Re: Can't escape characters in php?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124536@lists.php.net to get a copy of this message | ||
You're simply missing quotation marks, as far as I can see:
if (ereg('[^0-9]', "2002-11-14"))
print "That's not a number!";
Marco
--
------------
php|architect - The magazine for PHP Professionals
The first monthly worldwide magazine dedicated to PHP programmers
Come visit us at http://www.phparch.com!