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);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.