Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php heredoc function

$fn = function ($data = NULL) {
    return $data;
};

$id = 5;
$name = 'Name';

echo <<<HTML
	{$fn(user($id, $name))}
HTML;
 
PREVIOUS NEXT
Tagged: #php #heredoc #function
ADD COMMENT
Topic
Name
9+6 =