ciao a tutti, ho trovato uno script che fa un parse di un file xml e tramite questo comando ottengo i campi dell'xml inseriti a blocchi dentro un array.
Codice PHP:var_export($x->aggiornamento) ;
se per esempio io voglio fare l'echo solo del valore tipo contenuto nel primo array come faccio?codice://restituisce: array ( 0 => class stdClass { var $tipo = 'sql'; var $ver = '1.7.1'; var $tabella = 'utenti'; var $corpo = 'ciao'; }, 1 => class stdClass { var $tipo = 'text'; var $ver = '1.7.1'; var $nome = 'prova.php'; var $dir = '/'; var $corpo = 'echo "ciao";'; }, 2 => class stdClass { var $tipo = 'text'; var $ver = '1.7.2'; var $nome = 'index.php'; var $dir = '/'; var $corpo = 'ciao'; }, )

Rispondi quotando