note 42232 added to language.oop.magic-functions
| From: | php at sharpdreams dot com | Date: | Sun, 09 May 2004 04:11:12 +0000 |
| Subject: | note 42232 added to language.oop.magic-functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-69358@lists.php.net to get a copy of this message | ||
To cut down the code in jan at sorgalla dot com's solution:
<?php
class foo {
function __sleep() {
return( array_keys( get_object_vars( &$this ) ) );
}
}
?>
----
Manual Page -- http://www.php.net/manual/en/language.oop.magic-functions.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42232
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42232&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42232&report=yes
Search -- http://master.php.net/manage/user-notes.php