i changed the function and added the missing ')'
ok i did some debugging
and
print_r($directories) echos out the directory paths.
print_r($aItems) echos out the following:
Code:
Array ( [0] => . [1] => .. [2] => New Text Document.txt [3] => New folder ) Array ( [0] => . [1] => .. ) Array ( [0] => . [1] => .. ) Array ( [0] => . [1] => .. ) Array ( [0] => . [1] => .. ) Array ( [0] => . [1] => .. )
this seems to be working correctly
print_r($aItemsFiltered) echos out:
Code:
Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( )
this is obviously causing a problem as its returning an empty array
how does one make sure that the filterArrayOnlyDirectories function is within scope?
cheers