this is my sample array:
$myArray = array("main" => "main.php") //just one element for now.
I need to find the variable from the array and output its value. Basically the variable $id will contain a value such as "main". So i wanted to figure out how i can compare the elements in the array with the value of the var $id, and if there is a var in the array same as the value of $id. I wud then want to output its value. I tried using "in_array()" but only tells me if the var exists or not....i cant output its value.
thx