Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $string = "This is a string with a ' in it.";
- echo "<h3>Original String:</h3>\n";
- echo "<p>".$string."</p>\n";
- $string = str_replace("'", "", $string);
- echo "<h3>Replaced String:</h3>\n";
- echo "<p>".$string."</p>\n";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement