In the code below, I can get the results I want. My question is, can I do the same thing using only one preg_replace?
$GetName = "Florence~Pauline~Smith~Johnson~None~1915-03-06~2000-04-03";
$MotherName = preg_replace("/~/"," ", $GetName);
$MotherName = preg_replace("/None/"," ", $MotherName);
Echo "Mother: $MotherName</br>";
//Mother: Florence Pauline Smith Johnson 1915-03-06 2000-04-03


Sign In
Create Account


Back to top









