0
有沒有辦法刪除陣列(僅當它是空的),這是非常難治用言語來解釋,在尺寸所以,這就是我想要做的:一個數組中刪除尺寸
我有一個陣列,它返回:
(
[region1] => Array
(
[] => Array
(
[0] => citie1
[1] => citie2
)
[region2] => Array
(
[] => Array
(
[0] => citie1
[1] => citie2
[2] => citie3
)
)
)
我希望它是:
(
[region1] => Array
(
[0] => citie1
[1] => citie2
)
[region2] => Array
(
[0] => citie1
[1] => citie2
[2] => citie3
)
)
你確定,這段代碼將第一個OP數組轉換爲必要的數組?請示例 – voodoo417
它的工作原理,我測試了它:) thx – zeomega