|
|
|
|
|
by cfferry
1750 days ago
|
|
This is great feedback, yingq. Thanks for it. I'll research a bit on providing a different approach. I am now thinking about returning arrays (containing a $status var), but will remain open to ideas. Ideas? At any rate, I appreciate your input. |
|
Personally, I'd stick with that and raise an exception on network and similar types of errors. PHP also supports trigger_error() but there doesn't seem to be top level guidance on errors vs exceptions. Try/catch just seems more straightforward to me.