tags:

views:

27

answers:

1

Hello,

I want to take the current key in the array. I know the function current($array) but it take the value.

Rules:

  1. I cannot use in any loop.
  2. Without array_flip().
  3. I need function.. if you can mix the function current($array) it'll be great!

Thank you.

+3  A: 

You mean something like key() ?

http://nl.php.net/manual/en/function.key.php

Prot0
Wrikken
LOL, I did not know about this function. thank you.
Luis