Home >Backend Development >PHP Tutorial >What is the difference between using opendir(), readdir() and other functions in PHP to traverse the directory and using scandir() directly?

What is the difference between using opendir(), readdir() and other functions in PHP to traverse the directory and using scandir() directly?

WBOY
WBOYOriginal
2016-09-15 11:30:561636browse

Why do many writing methods always use complicated writing methods instead of using scandir()?

Reply content:

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.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn