Wanted to convert
into
A fast, non regular-expression approach:
while(strstr($input, "")) { $input = str_replace("", "", $input); }