Re: eregi
| From: | Miguel Cruz | Date: | Thu, 02 May 2002 22:19:13 +0000 |
| Subject: | Re: eregi | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95783@lists.php.net to get a copy of this message | ||
On Thu, 2 May 2002, CC Zona wrote:
> mnc@stoic.net (Miguel Cruz) wrote:
>> preg_match("/{$start}(.*?)end/", $rf, my_var);
>
> Leave out the braces.
Don't they get removed by the parser's handling of "double-quoted" strings
long before anything makes it to preg_match()?
I almost always use the braces when inserting variables inside string
literals, just to avoid any chance of ambiguity.
miguel