| I need to convert all single-quotes (') to a backslash
followed by a single-quote (\'). How can I do this with a
regular expression? I'd also like to convert " to \" and
\ to \\. <<< |
All my " turn into \" and my ' turn into \', how do I get rid of all these unwanted backslashes? How and why did they get there? | When I do the following, the output is printed in
the wrong order: >>> |
| << | All my " turn into \" and my ' turn into \', how do I get rid of all these unwanted backslashes? How and why did they get there? | >> |
| I need to convert all single-quotes (') to a backslash followed by a single-quote (\'). How can I do this with a regular expression? I'd also like to convert " to \" and \ to \\. | Using PHP | When I do the following, the output is printed in the wrong order: |