10-12-2008, 12:20 AM
|
#7 (permalink)
|
|
The Contributor
Join Date: Apr 2008
Posts: 78
Thanks: 0
|
Quote:
Originally Posted by ReSpawN
The more simple approach is, to just define it as an array.
PHP Code:
$dirs = array();
If you're getting the same error, just try the regular foreach like so.
PHP Code:
foreach ( (array)$dirs as $key => $value ) { ... }
|
I had tried both of those before asking the question but they didn't work for some reason. I appreciate the suggestion though.
|
|
|
|