stop using echo in php use here doc code example
Example 1: php heredoc
$output = <<<HTML
<p>Lorem ipsum dolor sit amet consectetur<p>
<a href="{$foobar}">click here</a>
HTML;
Example 2: heredoc php
$str = <<<MYTEXT
This is a
demo message
with heredoc.
MYTEXT;
echo $str;