how to catch '=' operations on objects
| From: | Harald Radi | Date: | Sat, 27 Jan 2001 16:54:36 +0000 |
| Subject: | how to catch '=' operations on objects | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-45133@lists.php.net to get a copy of this message | ||
hi,
i've written an extension and want the following:
____________________________
$var = new myObject();
$echo $var->elem; // the php_myObject_property_handler() is called and i
can return the value
$echo $var // php prints out 'Object' , but i whish to serialize my
object and deliver a string
_____________________________
is this possible or do i always have to call something like echo
$var->serialize(); ?
harald.
resistance is futile - nme.at