I have this array:
$array = array (
"key1" => "Value 1",
"key2" => "Value 2",
"key3" => "Value 3",
"key4" => "Value 4",
...
);
I am submitting a key with a form, so I want to assign a variable the value that belongs to that key, for example:
$key = $_POST['key'];
$value = ?????; //this is what I need
This might be very simple, but I haven't done it in a very long time and I have forgotten how to do it.
Thanks.