我是 codeigniter 框架的新手。我正在使用 foreach 循环在数组内和数组内创建一个数组,以从 3 个表中获取记录。我已经像这样制作数组
Array
(
[devices] => Array
(
[0] => Array
(
[id] => 1
[device_name] => Smartphone
[device_image] => device-images/1d57a675edbb2ff97c5bc35fce27517c.png
[device_icon] => device-images/325af5a3587cdfc8f35ae345a2d432a3.png
[all_manufacturers] => Array
(
[0] => Array
(
[id] => 1
[fk_device_id] => 1
[manufacture] => Apple
[models] => Array
(
[0] => Array
(
[id] => 1
[fk_deviceid] => 1
[fk_manufactureid] => 1
[model_name] => iPhone 11 Pro Max
)
[1] => Array
(
[id] => 2
[fk_deviceid] => 1
[fk_manufactureid] => 1
[model_name] => iPhone 11 Pro
)
烙印99