1

This is the array;

$os = array("Mac", "NT", "Irix", "Linux");

When I use "in_array" for "Irix" it returns 'true'

The question is, how can get Irix's array key value (2)?

2
  • 11
    array_search( 'Irix', $os ) Commented Jan 8, 2012 at 12:01
  • damn! i was looking for php classes for that thank you Juhana Commented Jan 8, 2012 at 12:03

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.