<div dir="ltr">Dopo una interrogazione a Wikipedia trami le API dedicate ottengo una variabile $p il cui var_dump è il seguente: (estratto):<div><br></div><div><div>array(1) {</div><div> [<b>2874910</b>]=></div><div> array(4) {</div><div> ["pageid"]=></div><div> int(2874910)</div><div> ["ns"]=></div><div> int(0)</div><div> ["title"]=></div><div> string(5) "Pizza"</div><div> ["revisions"]=></div><div> array(1) {</div><div> [0]=></div><div> array(3) {</div><div> ["contentformat"]=></div><div> string(11) "text/x-wiki"</div><div> ["contentmodel"]=></div><div> string(8) "wikitext"</div><div> ["*"]=></div><div> string(36859) "<b>{{Avvisounicode}}</b></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><b>{{nota disambigua}}</b></div></div></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><b>{{Gastronomia</b></div></div></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><b>|nome = Pizza</b></div></div></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><b>|immagine = Eq it-na pizza-margherita sep2005 sml.jpg</b></div></div></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><b>|didascalia = [[Pizza napoletana]] ([[Pizza Margherita|Margherita]])</b></div></div></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><b>|IPA = ˈpittsa</b></div></div></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><b>|paese = Italia</b></div></div></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><b>|regione= Campania</b></div></div></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><b>|provincia= Napoli</b></div></div></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><b><br></b></div></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><b>...</b></div></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><b><br></b></div></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><b>}}</b></div></blockquote></blockquote></blockquote><div><br></div><div><br></div><div>Con </div><div><br></div><div>$first_key = key ($p);<br></div><div><br></div><div>ho trovato che il primo elemento dell' array ha il valore intero <b>2874910 : </b>qual'è la sintassi per accedere agli array nella gerarchia inferiore ?? Il mio obiettivo finale è accedere alla variabile "wikitext".</div><div><br></div><div>Grazie in anticipo!</div><div><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div style="font-family:arial;font-size:small"><i>Fabrizio</i><br></div></div></div>
</div></div>