This is my array in php: $list = array('dog', 'tiger', 'lion', 'elephant')
Table name: watchlist Database: assignment
After comparing the $list with the watchlist table it should print only the matched items. So, the output for this will be: dog tiger
Is there any mysql query to get this output. I am weak in mysql. Thank you in advance.