note 35781 deleted from function.serialize by aharvey
| From: | aharvey@php.net | Date: | Tue, 06 Nov 2012 02:03:02 +0000 |
| Subject: | note 35781 deleted from function.serialize by aharvey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-191740@lists.php.net to get a copy of this message | ||
Note Submitter: iam4webwork at hotmail dot com
----
I think an example is in order to specify what is meant by "returns a string containing a
byte-stream representation of value that can be stored anywhere."
Here's an example:
<?php
echo serialize("php");
?>
Result is as follows:
s:3:"php";
The cryptic result is a string indicating that the serialized data is itself a string of 3 bytes
whose value is "php".