|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Oct 2005
Messaggi: 407
|
[PHP] Estrarre key di un'array creato con simplexml_load_file
Mi sapreste dire come posso fare per recupereare le [key] di un'array creato con la funzione simplexml_load_file?
Codice:
SimpleXMLElement Object
(
[Day] => Array
(
[0] => SimpleXMLElement Object
(
[@attributes] => Array
(
[Num] => 4553
)
[Date] => 220412
[Energy] => 2
)
[1] => SimpleXMLElement Object
(
[@attributes] => Array
(
[Num] => 4553
)
[Date] => 170612
[Energy] => 403
)
[2] => SimpleXMLElement Object
(
[@attributes] => Array
(
[Num] => 4554
)
[Date] => 180612
[Energy] => 1500
)
[3] => SimpleXMLElement Object
(
[@attributes] => Array
(
[Num] => 4555
)
[Date] => 220412
[Energy] => 2
)
[4] => SimpleXMLElement Object
(
[@attributes] => Array
(
[Num] => 4556
)
[Date] => 170612
[Energy] => 403
)
[5] => SimpleXMLElement Object
(
[@attributes] => Array
(
[Num] => 4557
)
[Date] => 180612
[Energy] => 1500
)
)
)
![]()
__________________
CPU: Intel i5 750 @2.66 GHz Mainboard: ASUS P7P55D Deluxe RAM: 4x2GB Kingston HyperX 7-7-7-20 DDR3 @1333 MHz Hard Disk: Samsung SSD 840 EVO 250GB, 3 Tb WD Green caviar 64MbCache Monitor: Samsung Syncmaster P2350 FullHD Scheda Video: ASUS EAH5850 DirectCU 1Gb GDDR5 Alimentatore: Corsair HX620 80Plus Sistema Operativo: Windows 7 Professional SP1 x64 Case: Cooler Master CM 690 |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 11:55.




















