This question already has an answer here:
I have an array variable like this
$variable[] = $data['master_software_capability_id'];
How to use this array variable in SQL query
Is this the right way ?
SELECT * FROM software_capability where software_capability_id IN ($variable);