PDA

View Full Version : eregi_replace


az_wraith
12-18-2007, 04:33 PM
I am trying to use eregi_replace and would like to add what to change. Instead of replacing "TR" I would also like to check for "8B' and replace that too. I have tried preg_replace to no avail. Could someone please help. Thank you.


$p_array[$id][one] = $p_array[$id][one] + eregi_replace("TR","",mysql_result($result,0,"one"));

az_wraith
12-18-2007, 04:39 PM
Never mind I answered my own question. I did



$replace = array("TR", "8B");

str_replace($replace,"",mysql_result($result_stats,0,"one"))