Paste Search Dynamic
Recent pastes
string replace
  1. <?php
  2.  
  3. // Specify the string
  4. $string = "+1 341 -448-3190 ext. 64318";
  5.  
  6. // search words
  7. $search = array("+1", " ", "t", "-",".");
  8.  
  9. // replace words
  10. $replace = array("", "", "", "","");
  11.  
  12. // Replace multiple string
  13. echo str_replace($search, $replace, $string);
  14.  
  15. ?>
Parsed in 0.005 seconds