xmonster0 Posted March 13, 2009 Share Posted March 13, 2009 im getting a Invalid argument supplied for foreach() error when the array passed to it is empty im pretty new to php and would appreciate any feedback as to why this might happen and how to go about resolving it Quote Link to comment https://forums.phpfreaks.com/topic/149255-foreach-error/ Share on other sites More sharing options...
Mark Baker Posted March 13, 2009 Share Posted March 13, 2009 You shouldn't get an error of any kind when passing an empty array to foreach(). Are you sure that it's an array that you're passing in? Quote Link to comment https://forums.phpfreaks.com/topic/149255-foreach-error/#findComment-783791 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.