note 19195 deleted from function.preg-match by sander
| From: | sander@php.net | Date: | Sun, 12 May 2002 16:13:37 +0000 |
| Subject: | note 19195 deleted from function.preg-match by sander | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-30549@lists.php.net to get a copy of this message | ||
preg_match() returns an integer type rather than a boolean. Is this a bug of sorts given that it
only returns true/false?
You have to cast it to boolean if you want to use the result in a overloaded (by type) function, for
example.