function func($b){print_r($b);}for($i=0;$i<3;$i++){func("a".$i);}
函数参数里面可以是值加上变量吗?
如果不行该怎么写呢,
因为我要for循环,参数里面有循环的值。
回复讨论(解决方案)
可以询问,在线答疑。http://www.manonggu.com/biancheng/387
可以
传递什么样的值,是由函数体内的操作决定的
Statement: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