Hola Eleazan, pareciera que si, pero que pasa cuando un array tiene N nodos y es recursivo?
como saber cuando hay que modificar y cuando no?
no quise poner el ejemplo del array recursivo para complicarla, pero hay va:
Código PHP:
Ver original<?php
$frases[] = array('yahoo'=> array('title'=> array('count'=>1, 'text'=>"Yahoo!!") , '__total__'=>20)); $frases[] = array('google'=> array('title'=> array('count'=>21, 'text'=>"google!!") , '__total__'=>230)); $frases[] = array('msn'=> array('title'=> array('count'=>25, 'text'=>"msn!!") , '__total__'=>123, 'mas'=> array('elem1','elem2'))); $frases[] = array('elem3');
/* asi se ve la estructura del array
Array
(
[0] => Array
(
[yahoo] => Array
(
[title] => Array
(
[count] => 1
[text] => Yahoo!!
)
[__total__] => 20
)
)
[1] => Array
(
[google] => Array
(
[title] => Array
(
[B] [count] => 21
[text] => google!![/B]
)
[__total__] => 230
)
)
[2] => Array
(
[msn] => Array
(
[title] => Array
(
[count] => 25
[text] => msn!!
)
[__total__] => 123
[mas] => Array
(
[0] => elem1
[1] => elem2
)
)
)
[3] => Array
(
[0] => elem3
)
)
*/
?>
quisiera reemplazar los valores de google por gmail