Warning: Variable passed to each()

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Re: Warning: Variable passed to each()

Post by seandisanti » Wed Apr 10, 2013 2:26 pm

The error is telling you what's wrong; you're calling a foreach() or each() with a variable that contains a scalar value, rather than collection like an array, or an object. I could tell you what line number too, but you left that part off of your error text.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest