invalid argument supplied for foreach() wordpress 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)
{
...
}
}
?>