title: PHP @ foreach warning
body: <p>I have a PHP foreach from an array, the array is given to me by my DB provider via a soap web service so I cannot change the array I get. When there are no elements to return, I get an empty array, this results in</p>
  
  <pre><code>Warning: Invalid argument supplied for foreach()
  </code></pre>
  
  <p>the loop looks like</p>
  
  <pre><code>foreach (($point1['return']) as $val) 
  </code></pre>
  
  <p>Where can I put an @ to stop this warning, and if I cant, what I do I do to turn off php warnings.</p>