Lost variables
| From: | Alberto Brea | Date: | Wed, 24 Nov 2004 11:47:00 +0000 |
| Subject: | Lost variables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-202775@lists.php.net to get a copy of this message | ||
Perhaps. I always use the same phrase to open up an array.
foreach($myarray as $var=>$val) { $$var= $val; }
You can also nest it into another foreach statement to extract from an
associative array.
Alberto
______________________________________________
Renovamos el Correo Yahoo!: ¡100 MB GRATIS!
Nuevos servicios, más seguridad
http://correo.yahoo.es