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