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
Release: 2016-09-15 11:30:56
Original
1615 people have browsed it

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.

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template