[PHP] 应用count()函数统计数组中的元素个数 →→→→→进入此内容的聊天室

来自 , 2019-09-19, 写在 PHP, 查看 154 次.
URL http://www.code666.cn/view/96f2b50b
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  4. <title>应用count()函数统计数组中的元素个数</title>
  5. </head>
  6.  
  7. <body>
  8. <?php
  9. $array = array("PHP函数参考大全","PHP程序开发范例宝典","PHP网络编程自学手册","PHP5从入门到精通 ");
  10. echo count($array);                                             //统计数组元素的个数,输出结果为4
  11. ?>
  12. </body>
  13. </html>
  14.  

回复 "应用count()函数统计数组中的元素个数"

这儿你可以回复上面这条便签

captcha