Home > Backend Development > PHP Tutorial > php函数里面的参数问题求解

php函数里面的参数问题求解

WBOY
Release: 2016-06-23 13:09:02
Original
761 people have browsed it

function func($b){print_r($b);}for($i=0;$i<3;$i++){func("a".$i);}
Copy after login

函数参数里面可以是值加上变量吗?
如果不行该怎么写呢,
因为我要for循环,参数里面有循环的值。


回复讨论(解决方案)

可以询问,在线答疑。http://www.manonggu.com/biancheng/387

可以
传递什么样的值,是由函数体内的操作决定的

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template