PHP函数
<?php
function writeName()
{
echo "好朋友";
}
echo "我们都是 ";
writeName();
?><hr>
<!-- 把一个数组分割为新的数组块 -->
>
<?php
$cars=array("你好","朋友","同学","同事","同行","专业");
print_r(array_chunk($cars,2));
?><hr>
<?php
// array_product() 函数计算并返回数组的乘积。
$a=array(6,6);
echo(array_product($a));
?> <hr>
<!-- 删除数组中的最后一个元素: -->
<?php
$a=array("red","green","blue");
array_pop($a);
print_r($a);
?>
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!