note 87234 added to control-structures.foreach
| From: | ipearce_shades at yahoo dot com | Date: | Wed, 26 Nov 2008 02:51:12 +0000 |
| Subject: | note 87234 added to control-structures.foreach | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-146966@lists.php.net to get a copy of this message | ||
For the love of god.
Wrap this function in is_array.
I am sick of doing
if(is_array(?)){
foreach(? as ?){
}
}
----
Server IP: 203.88.112.190
Probable Submitter: 58.174.100.95
----
Manual Page -- http://www.php.net/manual/en/control-structures.foreach.php
Edit -- https://master.php.net/note/edit/87234
Del: integrated -- https://master.php.net/note/delete/87234/integrated
Del: useless -- https://master.php.net/note/delete/87234/useless
Del: bad code -- https://master.php.net/note/delete/87234/bad+code
Del: spam -- https://master.php.net/note/delete/87234/spam
Del: non-english -- https://master.php.net/note/delete/87234/non-english
Del: in docs -- https://master.php.net/note/delete/87234/in+docs
Del: other reasons-- https://master.php.net/note/delete/87234
Reject -- https://master.php.net/note/reject/87234
Search -- https://master.php.net/manage/user-notes.php