Source Code:
(back to article)
<?php $string = "Websites like W3docs are a great resource for learning PHP."; // escape the characters "W", "3", and "s" $escaped_string = addcslashes($string, "W3d"); echo $escaped_string; ?>
Result:
Report an issue