note 52924 deleted from language.variables by cmb
| From: | cmb@php.net | Date: | Fri, 19 Apr 2019 15:13:31 +0000 |
| Subject: | note 52924 deleted from language.variables by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-210626@lists.php.net to get a copy of this message | ||
Note Submitter: josh at PraxisStudios dot com
----
As with echo, you can define a variable like this:
<?php
$text = <<<END
<table>
<tr>
<td>
$outputdata
</td>
</tr>
</table>
END;
?>
The closing END; must be on a line by itself (no whitespace).
[EDIT by danbrown AT php DOT net: This note illustrates HEREDOC syntax. For more information on
this and similar features, please read the "Strings" section of the manual here: http://www.php.net/manual/en/language.types.string.php
]