note 14079 added to function.serialize.php
| From: | abk at avatartechnology dot com | Date: | Mon, 16 Jul 2001 17:10:17 +0000 |
| Subject: | note 14079 added to function.serialize.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15436@lists.php.net to get a copy of this message | ||
BEWARE: if you are serializing a complex object with recursive references, serialize a reference to
the object. Otherwise you'll get strange and mysterious results.
Always this: $str = serialize(&$object);
not this: $str = serialize($object);
http://www.php.net/manual/en/function.serialize.php