Thread: What's @ doc ?
View Single Post
Old 05-12-2008, 09:20 PM   #4 (permalink)
drewbee
The Acquainted
 
drewbee's Avatar
 
Join Date: May 2008
Posts: 175
Thanks: 9
drewbee is on a distinguished road
Default

Exactly! It is very useful especially when certain conditions may exist.

For instance, if you expect an error to occur out of a function (XML Parsing comes to mind and being fed bad data), or if an error could potentially occur, but you want it to fail silently and continue on IE database connections. Should a database connection occur and you supress it correctly, instead of getting the default could not connect message, you can make it all pretty and stuff with a custom error handler, or use the OR DIE() function... but thats another topic
Send a message via AIM to drewbee
drewbee is offline  
Reply With Quote