dimanche 8 mars 2015

array php combine ? or merge?


Vote count:

0




Could this be possible? How to combine or merge arrays in php. to fetch data individualy for echoing purpose. Could this be possible? How to combine or merge arrays in php. to fetch data individualy for echoing purpose.



Array(

[0] => stdClass Object
(
[id] => 1
[icd] => J96.0
[rank] => 1
[description] => Acute respiratory failure
)

[1] => stdClass Object
(
[id] => 1
[icd] => J44.1
[rank] => 2
[description] => Chronic obstructive pulmonary disease with (acute) exacerbation
)

[2] => stdClass Object
(
[id] => 1
[icd] => J18.9
[rank] => 3
[description] => Pneumonia, unspecified organism
)


)


To this



Array(
[id] => 1
[icd] => (
[0] => J96.0
[1] => J44.1
[2] => J18.9
)
[description] => (
[0] => Acute respiratory failure
[1] => Chronic obstructive pulmonary disease with (acute) exacerbation
[2] => Pneumonia, unspecified organism
)

)


asked 22 secs ago







array php combine ? or merge?

Aucun commentaire:

Enregistrer un commentaire