dream789 发表于 2017-4-6 09:54:30

php 获取array key值

  $row = array('first'=>'number','second'=>'letter','third'=>null,'forth'=>'word');
for($i=0;$i<count($row);$i++){
    echo "\"".key($row)."\"";
    next($row);  
}
页: [1]
查看完整版本: php 获取array key值