Hello Wez, Sunday, December 4, 2005, 7:36:19 PM, you wrote:
> On 12/4/05, Marcus Boerger <[EMAIL PROTECTED]> wrote: >> > On the backslash: It'll be a bitch in places where you need the class name >> > as a string (reflection) because \ needs to be escaped withing a string. >> > Think: How many backslashes do you need in a regular expression using >> > double >> > quotes to represent a single backslash (try to answer this question without >> > trying it out. Was it two? Three? four? Six?) >> >> Wrong assumption. The \ won't need to be escaped. > Err, what about "my\namespace" ? That would be the string "my" <newline> "namespace". As a classname it would be "class namespace in namespace my". I guess your point is how to use that in ""-$-expressions, right? $bla = "${foo\bar::constant}"; Best regards, Marcus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php