stuckwithcode Posted February 10, 2010 Share Posted February 10, 2010 Hello, When I have this php code echo "a"."<br />"."b"."<br />"."<br />"."c"; Opera does not show the line breaks but other browsers do? How do I get the line breaks on Opera. Thanks Quote Link to comment Share on other sites More sharing options...
kla0005 Posted February 10, 2010 Share Posted February 10, 2010 Hello, When I have this php code echo "a"."<br />"."b"."<br />"."<br />"."c"; Opera does not show the line breaks but other browsers do? How do I get the line breaks on Opera. Thanks You should try to reinstall your browser, becaouse it works with my Opera? 0ö Quote Link to comment Share on other sites More sharing options...
Wolphie Posted February 10, 2010 Share Posted February 10, 2010 Just out of curiosity, why are you concatenating this? Why not just use: echo "a<br />b<br /><br />c"; Quote Link to comment Share on other sites More sharing options...
stuckwithcode Posted February 10, 2010 Author Share Posted February 10, 2010 I wasn't sure you could do that. With my problem the code does work in a php file on its own but I have a lot of html in my page and when I try to echo this code at the top of the page the line breaks are gone, but not in mozilla etc. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.