Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. <?php
  2.  
  3. $string = "This is a string with a ' in it.";
  4.  
  5. echo "<h3>Original String:</h3>\n";
  6. echo "<p>".$string."</p>\n";
  7.  
  8. $string = str_replace("'", "", $string);
  9.  
  10. echo "<h3>Replaced String:</h3>\n";
  11. echo "<p>".$string."</p>\n";
  12.  
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement