i have array given below
Array (
[0] => Array (
[user_id] => 2
)
[1] => Array (
[user_id] => 4
)
)
i need to select these user id to fetch data from database and display in html table i tried this
foreach($prevUser as $key => $value){
print_r($value);
}
and receive this not the values
Array ( [user_id] => 2 ) Array ( [user_id] => 4 )
how to get user id
echo echo $value['user_id'];instead ofprint_r($value);