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

delphi - TJvHidDeviceController "DevicePath" always showing "\" -

web applications - Making Python scripts work on MAMP -

cocoa - Converting NSString to keyCode+modifiers for AXUIElementPostKeyboardEvent -