converting special symbols to escaped characters and vice versa

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • yawnmoth

    converting special symbols to escaped characters and vice versa

    Say I wanted to convert strings like '\n' to "\n" or '\r' to "\r".
    Without using a bunch of successive str_replaces, how might I go about
    doing that? Is there some built-in PHP function that'd let me do that?

    Any help would be appreciated - thanks!

Working...