I have a string with newlines that I'd like to print out so that I see the special chars (such as
) rather than the newlines themselves.
So a string that would typically be echo
'd as
this is the top line of my string
this is the second line of the string
Would instead look like this:
this is the top line of my string
this is the second line of the string
How could I accomplish this in php?