开发者

How to take the current key from array? PHP

I want to take the current key in the array. I know the function current($array) but it take the value.开发者_Python百科

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.


You mean something like key() ?

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜