diff --git a/functions/var.xml b/functions/var.xml
index a1aa242259..aefbd9645f 100644
--- a/functions/var.xml
+++ b/functions/var.xml
@@ -883,14 +883,23 @@ print_r ($a);
This is useful for storing or passing PHP values around without
losing their type and structure.
-
- To make the serialized string into a PHP value again, use
- unserialize. Serialize
- handles the types integer, double,
- string, array (multidimensional) and
- object (object properties will be serialized, but
- methods are lost).
-
+
+ To make the serialized string into a PHP value again, use
+ unserialize. Serialize
+ handles the types integer, double,
+ string, array (multidimensional) and
+ object.
+
+
+
+ In PHP 3, object properties will be serialized, but methods are
+ lost. PHP 4 removes that limitation and restores both properties
+ and methods. Please see the Serializing Objects
+ section of Classes and
+ Objects for more information.
+
+ Serialize example
@@ -913,6 +922,9 @@ if (!odbc_execute ($stmt, &$sqldata)) {
+
+ See Also: unserialize.
+
@@ -1019,6 +1031,16 @@ settype($bar, "string"); // $bar is now "1" (string)
If an object was serialized, its methods are not preserved in the
returned value.
+
+
+ In PHP 3, methods are not preserved when unserializing a
+ serialized object. PHP 4 removes that limitation and restores
+ both properties and methods. Please see the Serializing Objects
+ section of Classes and
+ Objects or more information.
+
+ Unserialize example
@@ -1044,6 +1066,9 @@ if (!odbc_execute ($stmt, &$sqldata) || !odbc_fetch_into ($stmt, &$tmp))
+
+ See Also: serialize.
+