Function to Remove several words from php string
Posted on 2011-09-28
I have this:
$remove1 = "pdf"
$str="Download Adobe Dreamweaver training PDF"
Result should be:
$str="Adobe Dreamweaver training"
Can someone help me with a simple function to remove several word from string ?
It would be nice to call the function this way:
<?php echo $mystring("donwload","pdf") ?>
Thank you for any help!