Presumably many people will write a few or even dozens of lines of code to list all the files into an array to delete, but glob function minutes to solve the problem!
array_ map('unlink', glob('*'));
Use Alipay, wechat and QQ clients to scan code and reward
Reward the author
This paper is written by SangSir Creation, adoption Knowledge sharing signature 4.0 International license agreement
In addition to the reprint / source, all articles are original or translated. Please sign before reprinting