I have a string with special characters like doublequote " or comma or hypen
For example:
$str= "156- Police, 132 - Medical, 119 - Fire";
output should be
$newstr = "156 - Police, 132 - Medical, 119 - Fire"
I am trying to do it with str_replace function in php as
$chars = array('"', "'", ",","-",".");
$speChars = array(""", "'", ",","-",".");
$newStr = str_replace($str, $chars, $speChars);
But it didnot work. Could anyone please help me to figure out this issue?