Best way to generate text breadcrumbs from a PHP array having 3 columns (id, path, name)?
问题 For one possible solution, see my second post below. Having a PHP array storing data from a tree structure, with the first column storing the id of the node, the second column storing the path of the parent node as a concatenation of id values, the third columns storing the name of the node, which is the best way to generate a text path (breadcrumbs) from the path done of ids? Example records: id | path | name --------------------- 1 | 0 | edible 14 | 1 | fruits 53 | 1.14 | apples 54 | 1.14 |