Example:
$animal = ("bird" => "crow", "cat" => "lion", "snake" => "cobra");
I want to get all values whose keys are
function_name_get_value(["monkey","goat","bird"]);
I tried using array_key_exists()
but the problem is I cannot pass the $animal
variable since it is specified what arguments are to be passed on function function_name_get_value