Re: pack vs. serialize
| From: | Richard Heyes | Date: | Mon, 18 Jun 2007 09:35:40 +0000 |
| Subject: | Re: pack vs. serialize | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-257263@lists.php.net to get a copy of this message | ||
Nathan Nobbe wrote:
all, i have recently stumbled upon the pack<http://www.php.net/manual/en/function.pack.php>method. can this be used as a substitute for serialize<http://www.php.net/manual/en/function.serialize.php> ?No. pack() is for creating binary representations of data, while serialize() returns a text representation of a PHP sitructure, (for objects the class must be loaded before you unserialize it). -- Richard Heyes 0844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software