I need to work with some scripts, in which I found this:
$data = <<<DATA
MIN={$min}
INVOICE={$invoice}
AMOUNT={$sum}
EXP_TIME={$exp_date}
DESCR={$descr}
DATA;
Can someone provide more info around $somevar = <<<DATA… and echo <<<HTML… it seems hard to find useful info about this.
It´s a heredoc syntax:
You can read more about this in the php documentation
http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc
More info:
Example:
http://www.tuxradar.com/practicalphp/2/6/3