Printing special characters in php
<p>I have a php variable which contains data from an IO stream (say, a file I've just read). This string contains a number of special characters such as \n and \t and so forth. I need to be able to print all of these characters to screen so that I can examine the string visually. I'm presuming there's some way of escaping them, but for the life of me I can't figure out how. </p>
