On 30/08/2014 22:26, Robert Williams wrote:
function foo() {
    $string = <<<
       THEEND
       This is the document text. Any
       whitespace appearing in a column
       that’s before the starting token
       is automatically ignored for all
       lines.
    THEEND;

I like this idea, at first glance.

I’ve not given this solution deep thought, so I’m sure there are problems I’m 
missing.

The biggest one that comes into my mind is how to define "a column that's before the starting token" if there are a mix of tabs and spaces involved.

--
Rowan Collins
[IMSoP]


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to