Why does not want to screen text in php in this way
echo <<<TEXT .............. TEXT; It seems everything is correct.
Why does not want to screen text in php in this way
echo <<<TEXT .............. TEXT; It seems everything is correct.
At the announcement it is necessary to remove indents before the closing mark.
<?php $var = <<<TEXT TEXT; ?> It is very important to note that it’s semicolon (;). It can be indented, it can be indented, and there it can be.
Source: https://ru.stackoverflow.com/questions/8981/
All Articles