PHP·98 questionsHow to work with directories?SaveUpdated: 2026-08-31Answer•scandir() — list files.•mkdir() — create.•rmdir() — delete empty.•is_dir() — check.•glob('*.php') — pattern search.Ask AI to clarifyWas this answer helpful?HelpfulNot helpfulSuggest an improvement