Elegant solution for line-breaks (PHP)

Posted by Nimbuz on Stack Overflow See other posts from Stack Overflow or by Nimbuz
Published on 2010-04-28T04:44:33Z Indexed on 2010/04/28 4:53 UTC
Read the original article Hit count: 236

Filed under:
|
|
$var = "Hi there"."<br/>"."Welcome to my website"."<br/>;"
echo $var;

Is there an elegant way to handle line-breaks in PHP? I'm not sure about other languages, but C++ has eol so something thats more readable and elegant to use?

Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about linebreaks