Discussione: PHP, array in un array
View Single Post
Old 22-06-2003, 14:20   #2
igorlazunna
Senior Member
 
L'Avatar di igorlazunna
 
Iscritto dal: Jan 2003
Cittā: Milano
Messaggi: 345
Codice:
<?
$mix = array(0 => 1, 1=> "ciao", 2 => 3.14, 3=> array(1,2,3));

while (list($key, $value)=each($mix))
{       
        echo ("$key - $value<br>");
        while(list($chiave,$valore)=each($mix[$key]))
        {
                echo (" ----> $chiave - $valore<br>");
        }
}

?>
__________________
Scarica Fedora Core 1 http://zunami.homeip.net - 10Mbps
igorlazunna č offline   Rispondi citando il messaggio o parte di esso