How do i get the key of an array element if i only have the value?
So i have this array and i need the key of an email address with the value
$users_emails = array(
'Spence' => 'spence@someplace.com',
'Matt' => 'matt@someplace.com',
'Marc' => 'marc@someplace.com',
'Adam' => 'adam@someplace.com',
'Paul' => 'paul@someplace.com');
How do i get the 'Adam' if all i have is the value 'adam@someplace.com'.. so basically how do i get the key if i have the value