I need to search for user ID through the arrays outputted from Mysql exploded table. I have tried an search a lot know but can't find a solution. Here is the code the ID I will search is ID 3
while ($row = mysqli_fetch_assoc($query)) {
$shares = explode(',', $row['share']); # MAKE THE TABLE INTO AN ARRAY
print_r($shares);
}
Output