I want to take the current key in the array.
I know the function current($array) but it take the value.
Rules:
- I cannot use in any loop.
- Without array_flip().
- I need function.. if you can mix the function current($array) it’ll be great!
Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You mean something like key() ?
http://nl.php.net/manual/en/function.key.php