Tutorial by Examples

Generates a storable representation of a value. 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(). Serializing a string $string = "Hello world"; echo serialize($s...
Using unserialize function to unserialize data from user input can be dangerous. A Warning from php.net Warning Do not pass untrusted user input to unserialize(). Unserialization can result in code being loaded and executed due to object instantiation and autoloading, and a malicious user may ...

Page 1 of 1