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
)
)
to get id, by pass in user_id = 15, I want
$ids = array(1, 2)
Is there a shorthand method for this, or do I have to code a function? Appreciate your help.