我有关于我的 PHP 的数据,我将从这些数据中创建一个树形菜单:
$data[] = "IT/managerial/software/kasubsie/Moro/Konsolidasi Server";
$data[] = "IT/managerial/software/kasubsie/Moro/Setting Server";
$data[] = "IT/managerial/software/kasubsie/Setting Server/Moro";
如何生成带有列的表:
| id | parent_id | name |