you need to loop through the keys, comparing $input to each key
Doing linear scans over an associative array is like trying to club someone to death with a loaded Uzi. :-)
-- Larry Wall in Authoritative list of Larry Wall quotes
See also Clubbing someone to death with a loaded Uzi blog by Dominus.
In reply to Re^2: the if statement
by eyepopslikeamosquito
in thread the if statement
by kwn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |