> On Apr 29, 2018, at 4:02 PM, James Moe <jimoe@xxxxxxxxxxxxxx> wrote: > > On 04/28/2018 09:16 PM, Jeffry Killen wrote: > >> The following is the result: >> testBed is the directory being read for this >> > What is the OS's listing of the directory? We have no way of knowing > really what is there and if it matches your results. > >> Why is testBed/test_1 included and the value is 1 >> instead of 'directory'. >> > How do you initialize "self::$_dirsToRead" before calling > getDirListSingle()? I solved this. I was using self::$_dirsToRead for another purpose as well as this and as a static variable it was retaining values from the other use. So I created a different static variable for this purpose. Now it is working as expected. Thank you for time and attention and thoughts JK -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php