illustrate
1. Heredoc and Nowdoc syntax can be of great help when using multi-line long strings. It requires that the end identifier should be the first string that appears on a new line.
2. Indentation is supported before closing the identifier, and line breaks are no longer forced after closing the identifier.
Example
//Except this: $query = <<<SQL SELECT * FROM `table` WHERE `column` = true; SQL; // This also works: $query = <<<SQL SELECT * FROM `table` WHERE `column` = true; SQL;
The above is the use of Heredoc and Nowdoc syntax in php7.3. I hope it will be helpful to everyone.