实例代码如下:
执行结果如:
php函数,想要传回多个返回值,怎么做到(函数不能返回多个值,但可以通过返回一个数组来得到类似的效果.)
实例代码如下:
输出结果:
array ( [0] => the quick brown fox jump over the lazy dog [1] => the quick brown fox jump over the lazy dog [2] => the quick brown fox jump over the lazy dog [3] => the quick brown fox jump over the lazy dog )
引用,本函数返回三个值,一个是函数返回,两个传引用.
实例代码如下:
本文地址:
转载随意,但请附上文章地址:-)