message: "Invalid argument supplied for foreach()" type: "ErrorException" 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)
{
...
}
}
?>