How could I consolidate the folowing to a single statement?
ereg_replace (" ", "", $myString); ereg_replace ("-", "", $myString);
Thanks, Corey
$s = array('_', ' '); $r = array('', '');
preg_replace($s, $r, $myString);
$myString = preg_replace('/[\s_]*/','',$myString);
If it's just simple like that, using str_replace would be much more efficient (faster)