preg_replace
only replace once time? i am tring to remoe unwanted words from a sentence, why in this situation, "an" hasn't been replaced?
http://www.php.net/manual/en/reference.pcre.pattern.modifiers.php
in modifier
part, what should i set?
$items = "This is an apple... ";
echo preg_replace('/ an | is /i',' ',$items);
//This an apple...
I need return "This apple...", thanx.