2010-08-05 18 views
0

我想取數組中的當前鍵。 我知道函數current($ array),但它取值。如何從數組中取出當前鍵? PHP

規則:

  1. 我不能在任何循環中使用。
  2. 沒有array_flip()。
  3. 我需要函數..如果你可以混合使用函數current($ array),那會很棒!

謝謝。

+1

使用'鍵'功能。 – Artefacto 2010-08-05 14:32:29

+1

你說'我不能在任何循環中使用',那麼你目前的含義是什麼? – ant 2010-08-05 14:32:43

回答

相關問題