Web Hosting Talk







View Full Version : PHP - Try/Catch/Skip error ?


quantass
08-14-2005, 05:43 PM
I have an area of code within my class which will try to access a non-existant variable. It can also try to call a non-existant function. I've discovered the __call magic function for non-existant function but is there something for non-exostant properties?

Can try/catch be instructed to return to the one causing the error and to move on past it to the next statement?

gogocode
08-15-2005, 01:05 AM
In PHP 5 you have the magic object methods __get and __set

http://www.phptr.com/articles/article.asp?p=346958&seqNum=2&rl=1