I have an array of data which is :
Array
(
[0] => Array
(
[chat_categories] => one cat
[display_name] => admin user
[user_email] => testemail1@email.com
[user_login] => user
)
[1] => Array
(
[chat_categories] => one cat
[display_name] => Test User
[user_email] => testemail@testsite.com
[user_login] => testuser
)
)
Now I want to get the first element from that array, check if the values display_name, user_email and user_login matches and update chat_categories column in a wordpress user table if matched successfully.