| 
 Posted by David Haynes on 06/21/06 08:34 
Chung Leong wrote: 
> David Haynes wrote: 
>> BTW: Why doesn't the foreach() handle the !empty() case? It would make 
>> more sense IMHO. 
>  
> Do this: 
>  
> foreach((array) $clowns as $name => $clown) { } 
>  
> Null converts to an empty array. 
>  
 
I hadn't thought of that. Good idea! 
 
-david-
 
  
Navigation:
[Reply to this message] 
 |