Printing special characters in php -


i have php variable contains data io stream (say, file i've read). string contains number of special characters such \n , \t , forth. need able print of these characters screen can examine string visually. i'm presuming there's way of escaping them, life of me can't figure out how.

addcslashes("test\n", "\0..\37\177..\377") 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

binding - How can you make the color of elements of a WPF DrawingImage dynamic? -

c# - How to add a new treeview at the selected node? -