note 14375 deleted from function.is-array by sniper
| From: | sniper@php.net | Date: | Sat, 23 Aug 2003 00:30:06 +0000 |
| Subject: | note 14375 deleted from function.is-array by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-54932@lists.php.net to get a copy of this message | ||
Note Submitter:
----
Just thought I would put up an example just in case someone needed it.
===========================================
// check for the array
if (!is_array($valArray) {
// action if not an array
echo "$valArray";
} else {
while(list($key2,$val2) = each($valArray)) {
// action if it is an array
echo "$val2[$key2]";
}
}
===========================================
Happy coding,
--Tait