<?php
header ( "Content-type: text/html; charset=utf-8" );

    $info["aa"]=1;
    $info["bb"]=2;
    $info["cc"]=3;
    $info["dd"]="abcd";
    
    foreach($info as $k=>$val)
    {
        echo "键:".$k."  值:".$val;
        echo "<br>";
    }
?>

 

php获取数组的键值

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
相关资源
相似解决方案