公告
财富商城
积分规则
提问
发文
2019-01-10 18:13发布
来,给爷笑一个
If I have:
$array = array( 'one' =>'value', 'two' => 'value2' );
how do I get the string one back from $array[1] ?
one
$array[1]
If you only plan to work with one key in particular, you may accomplish this with a single line without having to store an array for all of the keys:
echo array_keys($array)[$i];
the key function helped me and is very simple
最多设置5个标签!
If you only plan to work with one key in particular, you may accomplish this with a single line without having to store an array for all of the keys:
the key function helped me and is very simple