Why is it whenever I use scandir() I receive periods at the beginning of the array?

后端 未结 5 1431
北荒
北荒 2020-12-01 15:45

Why is it whenever I use scandir() I receive periods at the beginning of the array?

Array
(
    [0] => .
    [1] => ..
    [2] => bar.php
    [3] =&         


        
5条回答
  •  半阙折子戏
    2020-12-01 16:23

    Those are the current (.) and parent (..) directories. They are present in all directories, and are used to refer to the directory itself and its direct parent.

提交回复
热议问题