Why is it whenever I use scandir() I receive periods at the beginning of the array?
Array ( [0] => . [1] => .. [2] => bar.php [3] =&
In one line of code:
$files=array_slice(scandir('/path/to/directory/'), 2);