![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
26/06/2012, 15:05
|
![Avatar de jotaincubus](http://static.forosdelweb.com/customavatars/avatar101814_3.gif) | | | Fecha de Ingreso: mayo-2005 Ubicación: Medellin - Colombia
Mensajes: 1.797
Antigüedad: 19 años, 8 meses Puntos: 394 | |
Respuesta: De array a variables Buscando en internet...
Convertir esto:
en esto:
Haga esto:
Código PHP:
Ver originalforeach($user as $key=>$value) { $$key = $value; } //or.... foreach($user as $key=>$value) { ${$key} = $value; }
Pagina del autor.
O tambien puede usar extract
__________________ Por que existe gente que no agradece después de que se le ha brindado tiempo y ayuda ??? |