PHP : Escaping special charters or replace them
470
UTF-8 all the way through
103736
Escape square brackets when assigning a class name to an element
43508
Why are $_POST variables getting escaped in PHP?
105512
How to replace string and preserve its uppercase/lowercase
45463
How do I replace all line breaks in a string with  elements?
145890
Regex/ code to fix corrupt serialized PHP data.
534
Execute PHP code in a string
61907
Right way to escape backslash [ \ ] in PHP regex?
101511
Is there a PHP function that can escape regex patterns before they are applied?
13458
How can I sanitize user input with PHP?
157148
What are the valid characters in PHP variable, method, class, etc names?
100787
How do I remove all specific characters at the end of a string in PHP?
126451
Best way to escape and unescape strings in Ruby?
92847
What's the deal with a leading underscore in PHP class methods?
131164
how to replace a particular line in a text file using php?
3965
What special characters must be escaped in regular expressions?
156722
How to override built-in PHP function(s)?