摘要:
COOKING Everyday Italian Giada De Laurentiis 2005 30.00 CHILDREN Harry Potter J K. Rowling 2005 29.99 WEB Learning XML Erik T. Ray 2003 39.95 CHILDREN H... 阅读全文
摘要:
直接上代码: 1 function aryTree($ary, $tagId = 'id', $tagPid = 'pid', $tagSub = '_sub') { 2 3 if(is_array($ary)) { 4 5 $refer = array(); // 创建基于主键(id)的数组引用(映射) 6 7 foreach ($ary as $k => $v) { 8 $refer[$v[$tagId]] =& $ary[$k]; // "引用":不同的变量名访问同一个内容 9 ... 阅读全文