pack vs. serialize
| From: | Nathan Nobbe | Date: | Sun, 17 Jun 2007 19:25:01 +0000 |
| Subject: | pack vs. serialize | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-257232@lists.php.net to get a copy of this message | ||
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>
?
if so, is there any rationalization for this; like would it perhaps create a
more
compact representation of the data or run more quickly?
it looks like pack cannot be used on object as i didnt see object in the
format listing;
what would be a typical application of the pack method?
thanks,
-nathan