check for error in php code example
Example: php error check
try
{
//Php code
}
catch(Eception $e)
{
echo $e->getMessage();
//This will disply error
}
try
{
//Php code
}
catch(Eception $e)
{
echo $e->getMessage();
//This will disply error
}