Re: Mystery foreach error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



$states = array(
	'AL' => array( '350','351','352','353', ),
	'AK' => array( '995','996','997','998','999', ),
	'AZ' => array( '850','851','852','853','854', ),
...
	'WI' => array( '530','531','532', ),
	'WY' => array( '820','821','822','823','824', ),
);
?>
Seeing your structure now, I think the problem is that '$state' is not set to a value in the array. Are you picking a State and assigning it to $state before executing this loop? If not, then $states[$state] is undefined which is not an array var.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux