|
array ( 'directory_structure.php' => 831, 'excursion_doc' => array ( 'excursion_doc_1_Winter.jpg' => 105542, 'excursion_doc_2_test.doc' => 24064, 'excursion_doc_7_test.doc' => 24064, ), 'family_agreement' => array ( 'family_agreement_1_Winter.jpg' => 105542, 'family_agreement_2_test.doc' => 24064, 'family_agreement_7_test.doc' => 24064, ), 'filming_doc' => array ( 'filming_doc_1_Winter.jpg' => 105542, 'filming_doc_2_test.doc' => 24064, 'filming_doc_7_test.doc' => 24064, ), 'hydrotherapy_swimming_doc' => array ( 'hydro_swim_doc_1_Winter.jpg' => 105542, 'hydro_swim_doc_2_test.doc' => 24064, 'hydro_swim_doc_7_test.doc' => 24064, ), 'immunization_card' => array ( 'immunization_card_1_Winter.jpg' => 105542, 'immunization_card_2_Sample2.PDF' => 50217, 'immunization_card_7_test.doc' => 24064, ), 'immunization_consent_doc' => array ( 'immunizaion_doc_1_Winter.jpg' => 105542, 'immunizaion_doc_2_Sample2.PDF' => 50217, 'immunizaion_doc_7_test.doc' => 24064, ), 'iterating_associative_arrays.php' => 2759, 'medical_history_and_treatment_approval_form' => array ( 'med_history_doc_1_Winter.jpg' => 105542, 'med_history_doc_2_Sample2.PDF' => 50217, 'med_history_doc_7_test.doc' => 24064, ), 'medical_reports' => array ( 'medical_reports_1_Winter.jpg' => 105542, 'medical_reports_2_test.doc' => 24064, 'medical_reports_7_test.doc' => 24064, ), 'previous_school_documents' => array ( 'prev_school_document_1_Winter.jpg' => 105542, 'Winter.jpg' => 105542, ), 'test_tree_structure.php' => 1082, 'test_tree_structure_2.php' => 930, )
The above is the result as an associative array. I would want to know how to iterate through the above array(nested arrays) in order to display a tree structure.
Can anyone help me on this with a basic demo code.
I am stuck.. Urgently help needed!
Regards, Dream2rule
|