How to fix “Warning: Invalid argument supplied for foreach()” in PHP

Background If you’re creating an application from ground up, you may already have coded or even designed the core components to check for and avoid non-traversable parameters in some methods or functions that use these variables in foreach statements within… Continue Reading