Hi,
I want to rewrite a string
my-new-domain.tld
into
my_new_domain_tld
Now when I do
str_replace(".","_", $domain);
only "." are changed into "_" but I have to replace "-" --> "_" (if any) too
Now I'm stuck (didn't buy a book until now and still am now php wizard )

Perhaps someone of the more advaned ones could show me the way? This would be great and

Thank you!
Greetings
claus