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

Like 

```
my-name

```

with 

```
my_name 

```

Answer: 
`str_replace('-', '_', $name)`
You need to use the return of str\_replace!

```
$name = str_replace('-', '_', $name);

```