Blogger Information
Blog 26
fans 1
comment 2
visits 21775
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
9月28日作业:乘积函数!
星空的博客
Original
489 people have browsed it

实例

<?php

	function sum($a,$b,$c,...$he){
                //添加到数组中
		array_unshift($he,$a,$b,$c);

		//求积函数
	  return array_product($he);

	}

	echo sum(1,2,3,4,5,6,7,8,9);

?>

运行实例 »

点击 "运行实例" 按钮查看在线实例


Correction status:unqualified

Teacher's comments:看一下群公告中的作业要求
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