Cheking and error on a PHP function
<p>There is a way to check with a <strong>"IF"</strong> if a function fails in php?</p>

<p>Ex.</p>

<blockquote>
<pre><code>If (getimagesize($image) returns and error)  {
echo 'Error: function dont work';
}
else
{
// do something
}
</code></pre>
</blockquote>

<p>Thanks!</p>
