I have two rows fetched from database... The table is something like
id | values
------------
1 | speaker
2 | modem
3 | pendrive
and another table is something like
id | values
------------
1 | speaker
2 | pendrive
I want to see like
no.| values
------------
1 | modem
You can use php array_diff, it will give you exactly what you want:
This is how it works:
$newArray= array_diff($array1, $array2);
Here is a working DEMO