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
Post a Comment