Re: Object Function-call handling in PHP5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a toughy I've been working over for a bit. I was wondering if
there is a way to cause objects to have certain behaviors when builtin
functions are called, or maybe a way of setting, for example, a
"primary" string which is used whenever a function requiring a string
calls it.

Take a look at http://www.php.net/php5, section "Magic Methods"

In your case the __toString() method would be valuable...


Regards

Thorsten Suckow-Homberg

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux