View Single Post
Old 10-12-2008, 12:20 AM   #7 (permalink)
benton
The Contributor
 
Join Date: Apr 2008
Posts: 78
Thanks: 0
benton is on a distinguished road
Default

Quote:
Originally Posted by ReSpawN View Post
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.
benton is offline  
Reply With Quote