How can i str_replace / with _

the folowing is not working

$gemeente = str_replace ("/", "_", $gemeent);

Thanks in advice John

i found the solution by myself
here it is

$provinc = mb_strtolower($rows2['provincie']);
$raretekens=array('-',' ','/');
$provincie =str_replace($raretekens,'_',$provinc);