创建二维数组并赋值解决思路

WBOY
Release: 2016-06-13 13:29:08
Original
1115 people have browsed it

创建二维数组并赋值
我希望创建一个动态二维数组,第一维是classroom_id(key,课室有多少间不定),第二维是lesson_id(一节课可能对应多个lesson_id我希望可以做成类似一个头指针后对应一个链表的效果,因为我需要一个一个lesson_id再读取输出,所以符合其他做法也可以),然后不断往里面增加数据,应该怎么办?因为听说PHP没有链表,所以不知道怎么做!

------解决方案--------------------
超过了内存限制。开始处加上:
ini_set ('memory_limit', '128M') //改成你需要的值

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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!