I'm getting all value of this array. I want to get a whom key value in a PHP variable how can i do that.
$fields = array('firstNameInput' => 'Name', 'lastNameInput' => 'Surname', 'countryCodeInput' => 'Country', 'phoneNumberInput' => 'Phone', 'emailInput' => 'Email',
'companyNameInput' => 'Company', 'whom' => 'Connect to', 'subjectInput' => 'Subject', 'messageInput' => 'message'
);
foreach ($_POST as $key => $value) {
if (isset($fields[$key])) {
$emailText .= "$fields[$key]: $value
".$another;
}
}