Question: Is there a PHP function that replaces `-` with `_` (underscores) ?

Like 

```
my-name

```

with 

```
my_name 

```

Answer: 
`str_replace('-', '_', $name)`
There's, but it's not called replace\_hyphen, it's str\_replace

`str_replace('-', '_', $str);`