Simple “find element in array and return value” function in php

Scoodidilkido

New Member
I have a value like this:\[code\]$id = $_GET['id'];\[/code\]I need to compare this value to an array which converts this value into another value.For example, if id==14, then check array for element 14, and return its value, for example in this case "Cars".Anybody know a simple code for this?Thanks
 
Back
Top