[thelist] getting selective variables out of an array()

Bob Meetin bobm at dottedi.biz
Mon Jan 11 13:24:37 CST 2010


Fred Jones wrote:
> Should be:
>
> foreach ($element as $item)
> {
> 	foreach ($item as $key => $element )
> 	{
>   
>>>> see: http://www.dottedi.biz/codesamples/arrays
>>>>         
Sorry, but less promising:*

Warning*: Invalid argument supplied for foreach() in 
*/home/matthelm/public_html/codesamples/arrays/states.php* on line *85*

*Warning*: Invalid argument supplied for foreach() in 
*/home/matthelm/public_html/codesamples/arrays/states.php* on line *85*

I fixed an error in the php version where I didn't close php.



More information about the thelist mailing list