replace all occurences of a specific character in string

replace all occurences of a specific character in string

Im trying to replace a certain character in a string, but I can't seem to
get it to work. I have the following code so far:
$sname = preg_replace('/[^\p{L}\p{N}\s]/u', '', $_POST['name']);
$semail = preg_replace('/[^\p{L}\p{N}\s]/u', '', $_POST['email']);
$smessage = preg_replace('/[^\p{L}\p{N}\s]/u', '', $_POST['message']);
$name = str_replace('¤', '', $sname);
$email = str_replace('¤', '.', $semail);
$message = str_replace('¤', '.', $smessage);
I am not sure what's wrong. The goal is to replace all the "¤" signs of
the string. I'd really appreciate if someone could help me out here :)