Array (
[0] => Array (
[id] => 1
[user_id] => 15
[booked] => 2020-08-01
[sendin] => 2020-08-03
[pickup] => 2020-08-08
[duration] => 5
)
[1] => Array (
[id] => 2
[user_id] => 15
[booked] => 2020-08-01
[sendin] => 2020-08-03
[pickup] => 2020-08-08
[duration] => 5
)
)
获取 id,传入user_id = 15,我想要
$ids = array(1, 2)
有没有一个速记方法,或者我必须编写一个函数?感谢你的帮助。
慕斯王
Helenr