Ciao a tutti.
Volevo semplicemente sapere se, anzichè utilizzare il costrutto "classico" per gli array multidimensionali, cioè:
...fosse "lecito" usare questo che per vari motivi preferisco e che ho sempre usato con JavaScript:codice:$myArray = array( array("band name" => "iron maiden", "genre" => "heavy metal"), array("country" => "uk", "band members" => "5"), array("active or disbanded?" => "active", "ever watched them live?" => "yes") );
Nessun problema riscontrato con nessun browser.codice:$myArray = array(); $myArray[] = array("band name" => "iron maiden", "genre" => "heavy metal"); $myArray[] = array("country" => "uk", "band members" => "5"); $myArray[] = array("active or disbanded?" => "active", "ever watched them live?" => "yes");
Volevo solo avere una conferma dai più esperti sul fatto che non vi siano "controindicazioni".
Grazie.

Rispondi quotando