note 14375 added to function.is-array.php

From: Date: Sat, 28 Jul 2001 08:35:50 +0000
Subject: note 14375 added to function.is-array.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-15979@lists.php.net to get a copy of this message
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 http://www.php.net/manual/en/function.is-array.php

« previous php.notes (#15979) next »