RE: [PHP] echo array name

From: Date: Mon, 09 Jul 2001 19:29:38 +0000
Subject: RE: [PHP] echo array name
Groups: php.general 
Request: Send a blank email to php-general+get-57003@lists.php.net to get a copy of this message
Not sure if this helps but how about? <? $months=array(January=>array("31","has 1 day holiday"), February=>array("28","is very cold")); for($i=0; $i < count($months); $i++) { while(list($key,$val)=each($months)) {echo $key.' has '.$val[0].' days, it '.$val[1].' <BR>';} } ?> ____________________________ Matthew Luchak Webmaster Kaydara Inc. mluchak@kaydara.com

« previous php.general (#57003) next »