i am trying this code but i get this error: No ending delimiter \'/\' found
No ending delimiter \'/\' found
$form = \" 2000,50\"; $salary = preg_replace(\'/\',\', \'.\'/\', $f
$salary = preg_replace('/,/', '.', $form);
But yeah, you don't really want to match a pattern but a string which is constant, so simply use str_replace().
str_replace()