haamro - 8:56 pm on Sep 23, 2011 (gmt 0)
I am trying to delete words in the sentence contained in an array.
I cannot use str_replace, because it replaces that character within another word. (e.g. , if I try to delete "is"; "this" becomes "th")
So, I wanted to use preg_replace with boundary, but how do I add "/b" to the array ? ( I don't want to change my array)
$sentence="this is the way I want";
My output should be = "this way I want"