Re: note 9889 added to preg_match
| From: | Lars Torben Wilson | Date: | Thu, 30 Nov 2000 05:47:48 +0000 |
| Subject: | Re: note 9889 added to preg_match | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-8277@lists.php.net to get a copy of this message | ||
perlgirl@hotmail.com writes:
> Why does this error?
> preg_match('/^\./',$f) && continue;
>
> but this is OK?
> if (preg_match('/^\./',$f)) {continue;}
>
> Is a Boolean not a Boolean?
>
> http://www.php.net/manual/function.preg-match.php
&& expects two expressions as operands, and continue isn't an
expression. The above looks like perl syntax. :)
BTW, this note has been removed. You'll get a message from the system
explaining why.
Hope this helps,
Torben
--
+----------------------------------------------------------------+
|Torben Wilson <torben@php.net> Netmill iTech|
|http://www.coastnet.com/~torben http://www.netmill.fi|
|Ph: 1 250 383-9735 torben@netmill.fi|
+----------------------------------------------------------------+