【发布时间】:2021-01-14 16:00:45
【问题描述】:
我已经低于数组结果,如下所示。我想要的只是在其中添加更多条目。 我该怎么做?
Array
(
[result] => Array
(
[0] => Array
(
[number] => AAA1222
[short_description] => User unable to print
[state] => Closed
)
[1] => Array
(
[number] => AAA1223
[short_description] => Share drive not accessible
[state] => Closed
)
[2] => Array
(
[number] => AAA1224
[short_description] => Network is down
[state] => Closed
)
)
)
如果我想向数组中添加更多条目,例如
[number] => AAA1225
[short_description] => Cable replacement on workstation 12
[state] => Closed
我如何做到这一点。
谢谢!!
【问题讨论】:
-
使用php的array_push()方法。
标签: php html arrays multidimensional-array