tompouk Posted October 30, 2008 Share Posted October 30, 2008 Hi! I have a php function related to a mysql database, and it gives me this array as result: Array ( [1] => Array ( [text] => damn [12] => Array ( [text] => test ) [13] => Array ( [text] => test 2 ) ) [2] => Array ( [text] => Test 2 [14] => Array ( [text] => test enkore [16] => Array ( [text] => wowow dangereux ) ) [15] => Array ( [text] => yeah ) ) [11] => Array ( [text] => Faire devoirs ) ) The question is: what is the best way to parse it so I can show it dynamically in a page? I would like to show the results identically with the same tree arborescence as the array. I want to show the results in dividers. (it's a todo system) PS: Sorry for the text in arrays, it's random typed text. Thanks a lot! Link to comment https://forums.phpfreaks.com/topic/130674-array-parsing/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.