Leurent Francois schrieb:
I was asking myself if there was a good reason
__toBool // __toInt
NOT been present in my favorite language,
It is sooooo coool beeing able to cast object as string resulting in a
__toString() call
I'll really love being able to
class error extends exeption {
__toBool(){return false; }
}
....
if((bool) $result ) echo "This is ok";
..
131 - praying for a automatic method called at casting request.
Hi Laurent,
you need help? then use this list. If you have a proposal, send mail to
php.net ord zend.com
Regards
Carlos Medina
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php