I have an array:

```
Array
(
[0] => Array
(
[id] => 31299
[name] => 37322426212
[ips] => 
[tech_prefix] => 
[password] => 
[id_voip_hosts] => 
[proxy_mode] => 
[auth_type] => ani
[ani] => 37322426212
[accname] => 
[protocol] => 
[port] => 
[orig_enabled] => 1
[term_enabled] => 
[orig_capacity] => 
[term_capacity] => 
[orig_rate_table] => 7
[term_rate_table] => 
[id_dr_plans] => 
[orig_groups] => 
[term_groups] => 
[notes] => 
)
[1] => Array
(
[id] => 4373
[name] => 37322983029
[ips] => 
[tech_prefix] => 
[password] => 
[id_voip_hosts] => 
[proxy_mode] => 
[auth_type] => ani
[ani] => 37322983029
[accname] => 
[protocol] => 
[port] => 
[orig_enabled] => 1
[term_enabled] => 
[orig_capacity] => 
[term_capacity] => 
[orig_rate_table] => 7
[term_rate_table] => 
[id_dr_plans] => 
[orig_groups] => 
[term_groups] => 
[notes] => 
)
[2] => Array
(
[auth_type] => ani
[name] => 37322983029
[ani] => 37322983029
[orig_enabled] => Array
(
[0] => on
)
[orig_rate_table] => 7
)
)

```

Items with 0,1,2 may be more(3,4...10...and so on).
What I am trying to do is to find array with key `ani` and `name = 37322983029` and replace
`name` with '###' and `ani` to empty: 

```
[mane]=>"###",//where name = '37322983029'
[ani]=> //where ani = '37322983029'

```

I tried with `str_replace` but no success.
How can this be done?