PHP Infinite Classification Tree data formatting
?
1, ' pid ' = + 0, ' name ' = ' ' One ' '), array (' id ' = = ', ' pid ' = 0, ' name ' = ' one ') ', Array (' ID ' = 2, ' pid ' = + 1, ' name ' = ' two '), array (' id ' = ' = ', ' pid ' = ' = ', ' name ' = ' two ' 22 '), Array (' id ' = = 3, ' pid ' = + 1, ' name ' = ' two '), array (' id ' = ' = ', ' pid ' = ' = ') ', ' name ' = ' two ' Level 2 4 '), array (' id ' = = 9, ' pid ' = + 1, ' name ' = ' two '), array (' id ' = +, ' pid ' = = 1, ' name ' = > ' Level Two '), array (' id ' = = 4, ' pid ' = 9, ' name ' = ' three '), array (' id ' = = 6, ' pid ' = 9, ' Name ' = ' three '), array (' id ' = = 7, ' pid ' = 4, ' name ' = ' four '), array (' id ' = = 8, ' pid ' = > 4, ' name ' = ' four '), array (' id ' = 5, ' pid ' = = 4, ' name ' = ' four '), array (' id ' = 13 , ' pid ' = 4, ' name ' = ' four ', array (' id ' = +, ' pid ' = 8, ' name ' = ' five '), Array (' ID ' = +, ' pid ' =8, ' name ' = ' five-level '), array (' id ' = ' = ', ' pid ' = + 8, ' name ' = ' five '), array (' id ' = = ' P ID ' = +, ' name ' = ' Six level 64 '); $time 1 = Microtime (True), Var_dump (Gentree ($items 1)), $time 2 = Microtime (true), echo "function time 1:". ($time 2-$time 1);? >