Cheking and error on a PHP function

Posted by DomingoSL on Stack Overflow See other posts from Stack Overflow or by DomingoSL
Published on 2010-04-24T00:46:43Z Indexed on 2010/04/24 0:53 UTC
Read the original article Hit count: 246

Filed under:
|

There is a way to check with a "IF" if a function fails in php?

Ex.

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

Thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about error