javascript - Convert php Herirachical array to view -


i have heirachical db structure. using recurisive function have stored db values in heirarchical structure array. want display array in format in view .(like tree). there library in codeigniter supporting that. ?

db

 pk  parent  name     -------------------------     1   0       animals     2   1       cat 

my array

array (     [0] => array         (          [pk] => 1          [parent] => 0          [name] => animals          [childs] => array                         (                         [0] => array                              (                              [pk] => 2                              [parent] => 1                              [name] => cat                         )         ) ) 


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -