I pull data from the usps tracking site. Most of the time everything works just fine.
The only thing I have a problem with is if they are returning something I haven't prepared for. Is there a way I can cause a die() statement if this occurs?
// $result is the data I get back from usps
$theString = str_replace("</>", "", $result); // just taking out something I don't want.
I do get a response, even if what I get back isn't what I typically expected.
But I am not quite sure how to cause that str_replace() to die() if "</>" does not even exist.
Any ideas?