note 124315 deleted from language.types.string by cmb
| From: | cmb@php.net | Date: | Thu, 18 Nov 2021 12:02:53 +0000 |
| Subject: | note 124315 deleted from language.types.string by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-217261@lists.php.net to get a copy of this message | ||
Note Submitter: M. H. S.
----
<?php
// Its A Example for "Heredoc":
$n = 10;
$var_heredoc = <<<HEREDOC
Its A String For "$var_heredoc" variable.
heredoc can expanding variables.
(example: $n)
if you want not expanding, you need print " \ " befor variable.
(example: /$n)
heredoc can use " /n, /t, /r, ... ".
heredoc = the string of double-qoutation;
HEREDOC; -> its bad closing of heredoc!
HEREDOC;
// its a good closing of heredoc!
?>