I have an input:
$url = $params[0];
I have an array:
$dictionary = array(
"stock" => 1,
"user" => 2,
"zone" => 3);
How can I use the input to search the left values of this array (stock, user, zone, etc.) and get back the value on the right (1, 2, 3, etc.)?