. Directory

The . directory represents the current directory. It is useful to designate the current directory, and apply an operation on all the files in that directory. It is also used in php.ini directives, to that a path at the current directory.

<?php

    // lists of the files in the current directory
    $files = glob('./*.php');

?>

See also Dot and dot-dot directories.

Related : Path, Concatenation, Dot-dot Directory .., . File