HuyPV
Thursday, November 4, 2010
<?php
$str = <<<EOF
First line
Second line
Next line$$$
EOF;
$otherString = <<<XXX
First line
Second line
Next line$$$
XXX;
echo $str;
Title:
PHP - Define multiple line string
Description:
<?php $str = <<<EOF First line Second line Next line$$$ EOF; $otherString = <<<XXX First line Second line ...
...
Rating:
4