Hi all,
I am reading the contents of a folder and storeing the file names to an array as such:
[code=php]while (false !== ($filename = readdir($dh))) {
$files[] = $filename;
}[/code]
When i print_r the values to the webpage, even though I only have 6 files in the folder, there are 8 elements in the array showing where the first 2 are empty.
How can I set the array to start at the 3 element?
Regards
Amateur