note 87234 rejected from control-structures.foreach by thiago
| From: | thiago@php.net | Date: | Wed, 26 Nov 2008 04:17:03 +0000 |
| Subject: | note 87234 rejected from control-structures.foreach by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-146969@lists.php.net to get a copy of this message | ||
Note Submitter: ipearce_shades at yahoo dot com
----
For the love of god.
Wrap this function in is_array.
I am sick of doing
if(is_array(?)){
foreach(? as ?){
}
}