I am looking to handle a situation whereby the XML file that I at trying to retrieve is not ready or is not available.
I am using:
$object = simplexml_load_string($file);
Sometimes, I get the following error:
'Start tag expected, '<' not found in etc...'
I have tried the following, and it doesn't work.
if($object === false){
// code here
}