Jump to content

Archived

This topic is now archived and is closed to further replies.

scliburn

why would this be needed? $css .= <<<End_of_CSS

Recommended Posts

$css .= <<<End_of_CSS
<link rel="stylesheet" href="css/css.css" type="text/css" media="all" />
End_of_CSS;

is there any importance to the above over the below?

$css .- '<link rel="stylesheet" href="css/css.css" type="text/css" media="all" />';

???

Share this post


Link to post
Share on other sites
I seen no need to for a HEREDOC statment just to print 1 line of html, but if its mulitple lines 10+ then I'd use heredoc. However if its a 1 liner or 1 or 2 lines I'd use single quotes.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.