[ create a new paste ] login | about

Link: http://codepad.org/ywbZR1i8    [ raw code | output | fork ]

PHP, pasted on Nov 29:
1
2
3
4
5
<?php 
$my_replacements = array("my dog", "doga");
 $my_string = "doga my dog test";
 $replaced_string = str_replace($my_replacements, '', $my_string);
 echo $replaced_string;


Output:
1
  test


Create a new paste based on this one


Comments: