What's @ doc ?
View Single Post
05-12-2008, 09:20 PM
Join Date: May 2008
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
View Public Profile
Send a private message to drewbee
Find More Posts by drewbee