Advertisement
jiue123

Replace anything String (Sữa ký tự trong chuỗi )

Sep 23rd, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.30 KB | None | 0 0
  1. <?php
  2. $string = 'Here is your content with an image tag <img src=\"http://bavotasan.com/wp-content/themes/bavotasan_new/images/bavota.png" alt="Image" />' ;
  3.  
  4. $string = str_replace('\"',"b", "$string");
  5.  
  6. echo $string; // will output "Here is your content with an image tag" without the image tag
  7. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement