Newsgroup: it.comp.www.php
Titolo: array complesso

Ciao 
dopo aver effettuato una chiamata REST ad un server mi trovo alla fine con un array multidimensionale da scorrere per prendere alcuni parametri 
metto qui un pezzo dell'array
 
Array
(
    [limit] => 7
    [offset] => 0
    [count] => 8
    [restResourseDTOList] => Array
        (
            [0] => Array
                (
                    [type] => items
                    [expand] => Array
                        (
                        )
 
                    [name] => 
                    [handle] => 11566/272279
                    [internalAuthors] => Array
                        (
                            [0] => Array
                                (
                                    [author] => de Farias TDSM
                                    [authority] => 
                                    [share] => -1
                                    [order] => -1
                                    [confidence] => 600
                                )
 
                            [1] => Array
                                (
                                    [author] => Cruz MM
                                    [authority] => 
                                    [share] => -1
                                    [order] => -1
                                    [confidence] => 600
                                )
 
                            [2] => Array
                                (
                                    [author] => de Sa RCDC
                                    [authority] => 
                                    [share] => -1
                                    [order] => -1
                                    [confidence] => 600
                                )
 
                            [3] => Array
                                (
                                    [author] => Severi I
                                    [authority] => rp05636
                                    [share] => -1
                                    [order] => -1
                                    [confidence] => 600
                                )
 
                            [4] => Array
                                (
                                    [author] => Perugini J
                                    [authority] => rp05841
                                    [share] => -1
                                    [order] => -1
                                    [confidence] => 600
                                )
 
                            [5] => Array
                                (
                                    [author] => Senzacqua M
                                    [authority] => rp01530
                                    [share] => -1
                                    [order] => -1
                                    [confidence] => 600
                                )
 
                            [6] => Array
                                (
                                    [author] => Cerutti SM
                                    [authority] => 
                                    [share] => -1
                                    [order] => -1
                                    [confidence] => 600
                                )
 
                            [7] => Array
                                (
                                    [author] => Giordano A
                                    [authority] => rp01138
                                    [share] => -1
                                    [order] => -1
                                    [confidence] => 600
                                )
 
                            [8] => Array
                                (
                                    [author] => Cinti S
                                    [authority] => rp05470
                                    [share] => -1
                                    [order] => -1
                                    [confidence] => 600
                                )
 
                            [9] => Array
                                (
                                    [author] => Alonso-Vale MIC.
                                    [authority] => 
                                    [share] => -1
                                    [order] => -1
                                    [confidence] => 600
                                )
 
                        )
 
                    [language] => eng
                    [hasBitstream] => 
                    [itemId] => 90870
                    [workFlowValidationRule] => -1
                    [archived] => 1
                    [submitterNetID] => 2493
                    [submitterID] => 3997
                    [snapshot] => 
                    [identifierToDisseminate] => 90870
                    [workFlowValidationStatus] => 0
                    [simpleItemStatus] => 2
                    [inWorkFlow] => 
                    [inWorkspace] => 
                    [earlyDraft] => 1
                    [withdrawn] => 
                    [collectionHandle] => 11566/224520
                    [inputFormId] => 0
                    [submitter] => Array
                        (
                            [id] => 3997
                            [firstName] => Antonio
                            [lastName] => xxx
                            [email] => 
xx...@univpm.it
 
                            [netid] => 2493
                        )
 
                    [reopened] => 
                    [collection] => Array
                        (
                            [name] => 1.1 Articolo in rivista
                            [handle] => 11566/224520
                            [id] => 1
                            [type] => 3
                        )
 
                    [lastModifiedISO] => 2019-12-02T09:13:10.891+01:00
                    [lookupValues] => Array
                        (
                            [contextidab] => |13129|
                            [year] => 2019
                            [identifierScopus] => 
                            [isbn] => 
                            [book] => 
                            [subdate] => 2019-12-02T09:13:09Z
                            [spage] => 1
                            [source] => 
                            [title] => Melatonin supplementation decreases hypertrophic obesity and inflammation induced by high-fat diet in mice
                            [statoupload] => SUCCESSO
                            [identifierPubmed] => 
                            [fsitodocentelocked] => false
                            [contextdept] => |577|
                            [autoclaim] => 
                            [stitle] => 
                            [contextuser] => |1248|2493|5480|6441|6607|
                            [contextfaculty] => |511|
                            [tipologiasitodocente] => 262
                            [jtitle] => FRONTIERS IN ENDOCRINOLOGY
                            [codiceupload] => 20200
                            [summary] => 2019
                            [identifierIsi] => 
                            [contextssd] => |474|
                            [issue] => 
                            [citation] => 
                            [sitodocentenoninviare] => 
                            [jissn] => 1664-2392
                            [fsitodocentedef] => true
                            [fulltextsd] => 3NONE
                            [fulltextvalidation] => |NONE|
                            [sitodocentein] => 6607, 5480, 1248, 2493, 6441
                            [volume] => 10:750
                            [sitodocentesync] => true
                            [ancestatus] => 
                            [dataopsd] => 2019-12-02T11:55:54Z
                            [messaggioupload] => Tipologia assegnata: 262. Articolo in rivista
                            [epage] => 13
                            [itemvalidation] => |miur_success|
                            [contributors] => de Farias, Tdsm; Cruz, Mm; de Sa, Rcdc; Severi, I; Perugini, J; Senzacqua, M; Cerutti, Sm; Giordano, A; Cinti, S; Alonso-Vale, Mic.
                            [sissn] => 
                            [fsitodocente] => 
                            [doi] => 
                        )
 
                    [lastModified] => 1575274390891
                    [owner] => Array
                        (
                            [id] => -1
                            [firstName] => 
                            [lastName] => 
                            [email] => 
                            [netid] => 
                        )
 
                    [self] => /rest/api/v1/items/90870
                )
 
            [1] => Array
                (
                    [type] => items
                    [expand] => Array
                        (
                        )
 
                    [name] => 
                    [handle] => 11566/272137
                    [internalAuthors] => Array
                        (
                            [0] => Array
                                (
                                    [author] => Frosio F
                                    [authority] => rp31563
                                    [share] => -1
                                    [order] => -1
                                    [confidence] => 600
                                )
 
                            [1] => Array
                                (
                                    [author] => Mocchegiani F
                                    [authority] => rp03625
                                    [share] => -1
                                    [order] => -1
                                    [confidence] => 600
                                )
 
                            [2] => Array
                                (
                                    [author] => CONTE, GRAZIA
                                    [authority] => rp26708
                                    [share] => -1
                                    [order] => -1
                                    [confidence] => 600
                                )
 
                            [3] => Array
                                (
                                    [author] => Bona ED
                                    [authority] => 
                                    [share] => -1
                                    [order] => -1
                                    [confidence] => 600
                                )
 
                            [4] => Array
                                (
                                    [author] => Vecchi A
                                    [authority] => 
                                    [share] => -1
                                    [order] => -1
                                    [confidence] => 600
                                )
 
                            [5] => Array
                                (
                                    [author] => Nicolini D
                                    [authority] => rp03855
                                    [share] => -1
                                    [order] => -1
                                    [confidence] => 600
                                )
 
                            [6] => Array
                                (
                                    [author] => Vivarelli M.
                                    [authority] => rp07308
                                    [share] => -1
                                    [order] => -1
                                    [confidence] => 600
                                )
 
                        )
 
                    [language] => eng
                    [hasBitstream] => 
                    [itemId] => 90698
                    [workFlowValidationRule] => -1
                    [archived] => 1
                    [submitterNetID] => 3260
                    [submitterID] => 18931
                    [snapshot] => 
                    [identifierToDisseminate] => 90698
                    [workFlowValidationStatus] => 0
                    [simpleItemStatus] => 2
                    [inWorkFlow] => 
                    [inWorkspace] => 
                    [earlyDraft] => 1
                    [withdrawn] => 
                    [collectionHandle] => 11566/224520
                    [inputFormId] => 0
                    [submitter] => Array
                        (
                            [id] => 18931
                            [firstName] => Federico
                            [lastName] => MOCCHEGIANI
                            [email] => 
ff...@univpm.it
 
                            [netid] => 3260
                        )
 
                    [reopened] => 
                    [collection] => Array
                        (
                            [name] => 1.1 Articolo in rivista
                            [handle] => 11566/224520
                            [id] => 1
                            [type] => 3
                        )
 
                    [lastModifiedISO] => 2019-11-27T12:23:16.229+01:00
                    [lookupValues] => Array
                        (
                            [contextidab] => |13129|
                            [year] => 2019
                            [identifierScopus] => 
                            [isbn] => 
                            [book] => 
                            [subdate] => 2019-11-26T11:49:10Z
                            [spage] => 279
                            [source] => 
                            [title] => Neoadjuvant therapy in the treatment of hilar cholangiocarcinoma: Review of the literature.
                            [statoupload] => SUCCESSO
                            [identifierPubmed] => 31367275
                            [fsitodocentelocked] => false
                            [contextdept] => |577|
                            [autoclaim] => 
                            [stitle] => 
                            [contextuser] => |3260|5207|7136|21254|24237|
                            [contextfaculty] => |511|
                            [tipologiasitodocente] => 262
                            [jtitle] => WORLD JOURNAL OF GASTROINTESTINAL SURGERY
                            [codiceupload] => 20200
                            [summary] => 2019
                            [identifierIsi] => WOS:000477077300001
                            [contextssd] => |475|
                            [issue] => 6
                            [citation] => 
                            [sitodocentenoninviare] => 
                            [jissn] => 1948-9366
                            [fsitodocentedef] => true
                            [fulltextsd] => 3NONE
                            [fulltextvalidation] => |NONE|
                            [sitodocentein] => 24237, 3260, 21254, 5207, 7136
                            [volume] => 11
                            [sitodocentesync] => true
                            [ancestatus] => 
                            [dataopsd] => 2019-11-27T11:23:25Z
                            [messaggioupload] => Tipologia assegnata: 262. Articolo in rivista
                            [epage] => 286
                            [itemvalidation] => |miur_success|
                            [contributors] => Frosio, F; Mocchegiani, F; Conte, G; Bona, Ed; Vecchi, A; Nicolini, D; Vivarelli, M.
                            [sissn] => 
                            [fsitodocente] => 
                            [doi] => 10.4240/wjgs.v11.i6.279
                        )
 
                    [lastModified] => 1574853796229
                    [owner] => Array
                        (
                            [id] => -1
                            [firstName] => 
                            [lastName] => 
                            [email] => 
                            [netid] => 
                        )
 
                    [self] => /rest/api/v1/items/90698
                )
 
            [2] => Array
                (
                    [type] => items
                    [expand] => Array....
 
Sono 7 elementi in tutto e devo estrarre 
 
[handle]
[title]
[contributors]
[lastModifiedISO] 
 
Mi date un'imbeccata per risucire ?
Grazie delle collaborazione
Andrea
 
 
 

Il 11/12/19 17:33, condorex ha scritto:

puoi provare una combinazione di array_column() e array_walk()

>>>>  
http://www.bb2002.it
 :)  <<<<<
........... [ al lavoro ] ...........