There are three configuration items in the php.ini:Session.save_path= ""--set the session's storage pathSession.save_handler= ""--set user-defined storage function, if you want to use the PHP built-in session storage mechanism can use this function (
This article mainly introduces how to serialize and deserialize the data of PHP, the interested friend's reference, I hope to help you.
PHP actually uses two functions,serialize and Unserialize, to serialize and deserialize data.serialize
Serialization is the process of converting a variable into a string that can be saved or transmitted, and deserialization is the conversion of the string to the original variable at the appropriate time. Together, these two processes make it easy to
Serialization is the process of converting a variable into a string that can be saved or transmitted, and deserialization is the conversion of the string to the original variable at the appropriate time. Together, these two processes make it easy to
1. Serialize and Unserialize functions
These two are common functions for serializing and deserializing data in PHP.
$a = Array (' a ' = = ' Apple ', ' b ' = ' banana ', ' c ' = ' Coconut ');
Serializing arrays
$s = serialize ($a);
Echo $s;
PHP, a nested abbreviated name, is an abbreviation for the English Super Text preprocessing language (Php:hypertext preprocessor). PHP is an HTML embedded language, PHP and Microsoft's ASP quite a bit similar, is a server-side implementation of
Problem
What is PHP file? which software can be used to open
Workaround
PHP, a nested abbreviated name, is an abbreviation for the English Super Text preprocessing language (Php:hypertext preprocessor). PHP is an HTML embedded language, PHP and
1.PHP (foreign name: Php:hypertext Preprocessor, Chinese name: "Hypertext Preprocessor") is a common open source scripting language. The grammar absorbs the C language, Java and Perl features, is conducive to learning, widely used, mainly for the
Brief introduction
There are three configuration items in php.ini:
Session.save_path= ""--set the storage path for the sessionSession.save_handler= ""--set user-defined storage functions, if you want to use the PHP built-in session storage
Detailed
Written by Andot is a very classic introduction to PHP serialization of the article, the original from: http://www.coolcode.cn/?p=170
1. ObjectivePHP (starting with PHP 3.05) provides a set of serialized and deserialized functions for
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.