var_dump(glob("*")); // 只会遍历当前文件夹层里面的,不会往里面扒 exit;
array(9) {
[0]=>
string(16) "CallbackDemo.php"
[1]=>
string(8) "Demo.php"
[2]=>
string(9) "README.md"
[3]=>
string(15) "UnionClient.php"
[4]=>
string(13) "phpqrcode.php"
[5]=>
string(6) "qr.png"
[6]=>
string(8) "same.php"
[7]=>
string(4) "test"
[8]=>
string(6) "zb.php"
}