10-12-2008, 01:00 PM
|
#8 (permalink)
|
|
The Frequenter
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
|
Respawn: your method simply won't work, because glob returns a result no matter what. So, the declaration you're thinking might be ok, is not. Why? Because that variable gets overwritten by the return value of the glob function. So:
PHP Code:
$dirs = array(); $dirs = glob($curDir . '/*', GLOB_ONLYDIR);
is the same as without the declaration of the $dirs directory.
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
|
|
|
|