How-to articles, tricks, and solutions about FOREACH
How to access mysql result set data with a foreach loop
To access MySQL result set data with a foreach loop, you can use a loop like the following:
How to check if variable is array?... or something array-like
In PHP, you can use the "is_array" function to check if a variable is an array.