关于PHP中函数的返回值的问题
function Traverse_files($dir1,$dir2){ $dir = $dir1.'//m.sbmmt.com/m/'.$dir2; //print $dir; //exit; $ss = array(); if (is_dir($dir)){ if ($dh = opendir($dir)){ while (($file = readdir($dh)) !== false){ if($file!=="."&& $file!==".."){ $ss[]=$file; } } print_r($ss); return $ss; closedir($dh); } } } $dirbase = 'd:'; $dirito = '5-24'; $bb = Traverse_files($dirbase,$dirito); printf($bb);
已抢67232个
抢已抢40837个
抢已抢2900个
抢已抢4653个
抢已抢19667个
抢