Best way to implement try catch in php4

Posted by rgz on Stack Overflow See other posts from Stack Overflow or by rgz
Published on 2009-04-13T20:09:16Z Indexed on 2010/03/19 17:21 UTC
Read the original article Hit count: 432

Filed under:
|
|

What is the closest you can get to a try-catch block in php4?

I'm in the middle of a callback during an xmlrpc request and it's required to return a specifically structured array no matter what.

I have to error check all accesses to external resources, resulting in a deep stack of nested if-else blocks, ugly.

© Stack Overflow or respective owner

Related posts about php4

Related posts about try-catch