怎么生成数组

WBOY
Release: 2016-06-13 11:31:57
Original
1036 people have browsed it

如何生成数组
在mysql库中一个表中有这样两个字段,$cont_type,$cont_id,并且各自的记录数都超过一条,如何生成这样一个2维数组呢$tarTree[$cont_type][]=$cont_id;用mysql_fetch_row()吗

数组
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template