Here is what I just tried:
$searchPattern = array ("SERL", "SER");
$replacePattern = array ("SERIAL", "SERIAL");
$row[new_descr] = str_replace ($searchPattern, $replacePattern, "$row[descr]");
echo "<U>Product Description:</U> ".$row[new_descr].;
Here is the problem with this:
First Match:
6FT SERIALIAL CABLE DB9M TO DB25
Second Match:
4FT SERIAL CABLE PLUS 36 UPS DB25 TO DB25
The First Match: changed SERL to SERIALIAL
The Second Match: changed SER to SERIAL with no mistakes
Any ideas on how to fix this?