This is my array

```
$arr = array("dog", "cat", "lion");

```

Now i wanna replace any value that has the letter o with 0.
Example :

```
$arr = array("d0g", "cat", "li0n");

```

This is my method for doing this :

```
$arr = array("dog", "cat", "lion");

$arr2 = array("d0g", "cat", "li0n");
$rep = array_replace($arr, $arr2);
var_dump($rep);

```

This method is completely manual. While I want a way to automatically track the letter 'o' in any value and move them with '0'.