Why do many writing methods always use complicated writing methods instead of using scandir()?
Why do many writing methods always use complicated writing methods instead of using scandir()?
There is no difference in usage. However, scandir was introduced in php5.