thesnarkie Posted April 25, 2010 Report Share Posted April 25, 2010 (edited) $array = array ( "Griffin"=>array ( "Peter", "Lois", "Megan" ), "Quagmire"=>array ( "Glenn" ), "Brown"=>array ( "Cleveland", "Loretta", "Junior" ) ); Kā no šī arraya echot tos Griffin, Quagmire vai Brown ? Edited April 25, 2010 by thesnarkie Quote Link to comment Share on other sites More sharing options...
kirils Posted April 25, 2010 Report Share Posted April 25, 2010 foreach($arras as $need=>$shit) echo $need; ir aatraakais, kas naak praataa. Quote Link to comment Share on other sites More sharing options...
thesnarkie Posted April 25, 2010 Author Report Share Posted April 25, 2010 Paldies!! Piemirsās. Quote Link to comment Share on other sites More sharing options...
briedis Posted April 25, 2010 Report Share Posted April 25, 2010 var arī izmantot array_keys(); print_r(array_keys($array)); Quote Link to comment Share on other sites More sharing options...
daGrevis Posted April 25, 2010 Report Share Posted April 25, 2010 Neder? echo $array['Griffin']; Vai jau "lecam tālāk"? :D echo $array['Griffin']['Peter']; Quote Link to comment Share on other sites More sharing options...
thesnarkie Posted April 25, 2010 Author Report Share Posted April 25, 2010 (edited) daGrevis, neder. Man tieši tas gadījums, kā kirila postā. ;) jo to griffinu, Quagmire vai Brown būs visādi id un tad es nezināšu kuru tur izvilkt. Edited April 25, 2010 by thesnarkie Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.