PHP readdir Function – Read Directory



PHP readdir() directory function

Read files from directory in PHP.

The readdir() function is used to read files from directory in PHP.

readdir() function syntax

<?php

$file=readdir(“directory_name”);

?>

Example of readdir() in PHP

The output of read directory php function example is :

PHP read directory

PHP readdir function example for read files from directory.

Leave a Reply

Your email address will not be published. Required fields are marked *

Captcha *