Quantcast
Channel: How do I make PHP display new lines from an XML file? - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Answer by Nicholas Summers for How do I make PHP display new lines from an XML file?

$
0
0

You could capture the content in a variable first and then run:

$nolines = str_replace(array("\n", "\r"),'<br>', $var);

Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>