note 47678 deleted from function.unserialize by aidan
| From: | aidan@php.net | Date: | Thu, 25 Nov 2004 02:18:42 +0000 |
| Subject: | note 47678 deleted from function.unserialize by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-80996@lists.php.net to get a copy of this message | ||
Note Submitter: wasum01 at hotmail dot com
----
Unserialize is a fast function. If you want to store an array there are two ways: the traditional
way or using serialize function. The first one (the traditional way) is to write the structure of
the array in php format and store it in .php files and then include the file in your code. But this
way is actually slower than using unserialize since "include" or "require" is a
slow process. Unserialize is about twice as fast (rough estimation after some simple benchmarking).
----
Reason: useless note