Ok, I have a declared class called Error. I have another class called Login. I instantiate Error from Login and then return the Error variable to a variable in my script and try to cast it by something like:
$temp = $login->getError();
$error = (Error)$temp;
But this does not work (it returns an unexpected variable on the second line). Can someone tell me what I am doing wrong? Or does php not have the ability to cast created types?
Thanks.