I have PHP foreach from an array, the array is provided to me by the database provider through a soapy web service, so I cannot modify the resulting array. When there are no items to return, I get an empty array, this leads to
Warning: Invalid argument supplied for foreach()
the cycle looks like
foreach (($point1['return']) as $val)
Where can I put @ to stop this warning, and if I cannot, what am I doing, I am doing it to disable php warnings.
David source share