ErrorException Invalid argument supplied for foreach() (View: code example
Example: invalid argument supplied for foreach()
<?php
if (is_array($array) || is_object($array))
{
foreach ($array as $row)
{
...
}
}
?>
<?php
if (is_array($array) || is_object($array))
{
foreach ($array as $row)
{
...
}
}
?>