On Thu, 2 May 2002, CC Zona wrote:
> [EMAIL PROTECTED] (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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php