Markus Fischer wrote: > Hi, > > Andi Gutmans wrote: >> I think if the syntax is confusing we can go for just a single quote as >> part of the operator which doesn't make it look like just another plain >> old string, e.g.: >> >> $bar =<<<'FOO > > Such a thing is not nice for casual string syntax highlighting in > editors. Needs a special rule to handle an opening but not closing > single quote .. mhmmm :/'
(I'll try again) I still think it looks weird. Could we consider instead using <<<' ' with '; required on a new line? $bar = <<<' text with lots of 'quotes', "Quotes" and a few $variables, \slashes and \n \t not expanded '; Also very clear (and more intuitive in my view) would be: $bar = <<<' text with lots of 'quotes', "Quotes" and a few $variables, \slashes and \n \t not expanded '>>>; Greg -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php