站內搜尋

Tuesday, March 8, 2016

[PHP] 如何找出特定的鍵值(key)在陣列(array)中的順序?(How to get the position of a key within an array)

How to get the position of a key within an array

短摘:
$i = array_search('blah', array_keys($array));

No comments:

Post a Comment