Jump to content


Photo

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


  • Please log in to reply
1 reply to this topic

#1 scliburn

scliburn
  • Members
  • PipPipPip
  • Advanced Member
  • 30 posts

Posted 21 July 2006 - 05:09 PM

$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" />';

???

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 21 July 2006 - 05:11 PM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users