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 Link to comment https://forums.phpfreaks.com/topic/191640-wierd-opera-thing/ 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ö Link to comment https://forums.phpfreaks.com/topic/191640-wierd-opera-thing/#findComment-1010159 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"; Link to comment https://forums.phpfreaks.com/topic/191640-wierd-opera-thing/#findComment-1010160 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. Link to comment https://forums.phpfreaks.com/topic/191640-wierd-opera-thing/#findComment-1010162 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.