I want to find and replace some words. the problem is i do not want to replace the words if they are in a word.
forexample this is the sentence:
the output should be:
as you see "an" did not changed in the word "change"
because "an" is not by it self.
How can i do this?
Thanks
forexample this is the sentence:
PHP:
I want to change.
the output should be:
PHP:
I want change.
as you see "an" did not changed in the word "change"
because "an" is not by it self.
PHP:
$short = array('of', 'to', 'in', 'an');
$title = str_replace($short, "", $title);
How can i do this?
Thanks








