codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
<?php $my_replacements = array("my dog", "doga"); $my_string = "doga my dog test"; $replaced_string = str_replace($my_replacements, '', $my_string); echo $replaced_string;
Private
[
?
]
Run code
Submit