时间:2021-07-01 10:21:17 帮助过:16人阅读
"; function directory($dir){ $dp = opendir($dir); while($file = readdir($dp)){ if($file !="." && $file !=".."){ $path=$dir. "/". $file; /* 取得目录路径 */ if(is_dir($path)){ /* 判断是否有子目录 */ directory($path); /* 函数递归调用 */ echo "
"; } else{ printf(''.$path.'
'); } } } closedir($dp); } directory("."); ?>
$number = "5"; # $number is a string $sum = 15 + $number; # Add an integer and string to produce integer print("$sum\n");