Re: pack vs. serialize

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux