How is this possible that the str_replace() function below returns biWeekly and not Every Other Week ?
$payFrequency = "biweekly";
$postData['payFrequency'] = str_replace(array('weekly','biweekly','twicemonthly','monthly'),array('Weekly','Every Other Week','Twice a Month','Monthly'), $payFrequency, $cnt);
echo "$cnt {$postData['payFrequency']}\n"; // SHOWS 1 biWeekly
str_replaceis case-sensitive, sobiweeklygets replaced, butbiWeeklydoes not. Usestr_ireplaceif you want a case-insensitive replace.