根据表中PID字段用来区别自己所属的分类$array = array( array('id' => 1, 'pid' => 0, 'name' => '河北省'), array('id' => 2, 'pid' => 0, ...