This is probably a really silly question but is it possible to do somthing like this with classes:
$msg = $myClass->error->getErrorMsg();
Where error is a property of myClass, and error is an instance of the error class.
Thanks
Try it. It should work.
This probably won't though (unless you're on PHP 5), because of the method call: $myClass->getError()->getErrorMsg(); You'd need to do this instead: $error =& $myclass->getError(); echo $error->getErrorMsg();