Blogger Information
Blog 29
fans 0
comment 0
visits 19515
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
php函数
千里马遇伯乐
Original
868 people have browsed it

PHP函数

  1. <?php
  2. function writeName()
  3. {
  4. echo "好朋友";
  5. }
  6. echo "我们都是 ";
  7. writeName();
  8. ?><hr>
  9. <!-- 把一个数组分割为新的数组块 -->
  10. >
  11. <?php
  12. $cars=array("你好","朋友","同学","同事","同行","专业");
  13. print_r(array_chunk($cars,2));
  14. ?><hr>
  15. <?php
  16. // array_product() 函数计算并返回数组的乘积。
  17. $a=array(6,6);
  18. echo(array_product($a));
  19. ?> <hr>
  20. <!-- 删除数组中的最后一个元素: -->
  21. <?php
  22. $a=array("red","green","blue");
  23. array_pop($a);
  24. print_r($a);
  25. ?>
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post