摘要: 类似于.net的out功能,php中可以使用&实现如下示例:<?php$x=2;inOutFunction($x);function inOutFunction(&$x){ $x=3; return 'a';}echo $x;exit();同样,在递归中可以使用此方法传值:如下示例遍历文... 阅读全文
posted @ 2014-12-30 10:58 Bin_x 阅读(289) 评论(0) 推荐(0)