¡@

Home 

php Programming Glossary: currdepth

Getting a modified preorder tree traversal model (nested set) into a <ul>

http://stackoverflow.com/questions/1310649/getting-a-modified-preorder-tree-traversal-model-nested-set-into-a-ul

list fragment Using while loop bootstrap loop result '' currDepth 1 1 to get the outer ul while empty tree currNode array_shift.. currNode array_shift tree Level down if currNode 'depth' currDepth Yes open ul result . ' ul ' Level up if currNode 'depth' currDepth.. Yes open ul result . ' ul ' Level up if currNode 'depth' currDepth Yes close n open ul result . str_repeat ' ul ' currDepth currNode..

How to create an array from this result set (nested categories stored in databased with traversal model)?

http://stackoverflow.com/questions/3668702/how-to-create-an-array-from-this-result-set-nested-categories-stored-in-databas

I want to build a nested array. bootstrap loop result '' currDepth 1 1 to get the outer ul while empty tree currNode array_shift.. currNode array_shift tree Level down if currNode 'depth' currDepth Yes open ul result . ' ul ' Level up if currNode 'depth' currDepth.. Yes open ul result . ' ul ' Level up if currNode 'depth' currDepth Yes close n open ul result . str_repeat ' ul ' currDepth currNode..