destoon系统中get_maincat标签的用法

 

destoon系统中get_maincat标签的用法

get_maincat函数的用法,

如get_maincat(0, $mid, 1),其中第一、二、三个参数分别表示什么?

第一个参数代表parentid

第二个参数代表所有的分类


第三个参数 代表 分类的级别

如:$child = get_maincat(0, $mid, 1);

则代表将parentid=0,分类级别为1的分类,存入到$child。

  php中explode 函数的用法

例如:<?php $str = "Hello world. It's a beautiful day."; print_r (explode(" ",$str)); ?>.
输出:
Array ( [0] => Hello [1] => world. [2] => It's [3] => a [4] => beautiful [5] => day. )

posted @ 2015-04-09 14:07  宋源  阅读(248)  评论(0编辑  收藏  举报