Hi, folks, here again with a new purpose:  ``` as alternative to Nowdoc syntax.

Currently, Nowdoc syntax is very "verbose":

$string =<<<'CODE'
<div>
<p>Link: <a href="%s">'%s'</a><p>
</div>
CODE;

Why doesn't something like this?:

$string =```
<div>
<p>Link: <a href="%s">'%s'</a><p>
</div>
```;

even as well:

$string =```<div><p>Link: <a href="%s">'%s'</a><p></div>```;


I see a caveat: this is very similar to `eval` syntax. However, this syntax is 
more similar to Markdown syntax. 

What do you think ?

Regards
Manuel Canga

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

Reply via email to