a、 从return
function dosome(){ return true; }
OR
function dosome( param = true ){ return param; }
var = dosome();
while ( var ){ need(); }
b.来自固定参数TRUE的while循环
function need( $param = true) {
while ( param ){
$updates = get_point();
echo $updates[\'selector\'];
echo \'done\';
}
}
need();
c.来自fixed param FALSE的while循环
function need( $param = false) {
while ( param ){
$updates = get_point();
echo $updates[\'selector\'];
echo \'done\';
}
}
var = true;
need( var );