heredoc and slashes
| From: | Stefano Bagnara | Date: | Fri, 07 Jan 2000 15:09:26 +0000 |
| Subject: | heredoc and slashes | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-8975@lists.php.net to get a copy of this message | ||
<?php
$str =<<<EOD
a string with \\ two slashes in it..
EOD;
print($str);
?>
output:
a string with \ two slashes in it..
is this correct??
why i need to escape slashes??