I have an array that looks like this:
$fruit = array(\'apple\',\'orange\',\'grape\');
How can I find the index of a specific item, in the a
You have to use array_search.
Look here http://www.php.net/manual/en/function.array-search.php