Re: serialize() function

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

 



Nicholas Couloute wrote:
I was thinking of a news system with comments.


fine. but what's that got to do with serialize() per se?
or put another don't look at a function decide it might be
useful and then force yourself to build an application with it....

cart before the horse and all that.

On Thu, 13 Apr 2006 6:04 pm, Jochem Maas wrote:


Nicholas Couloute wrote:

Are there any tutorials and uses for serialize() ? I went to php.net and it isn't well documented as I would hope!


<?php

$o = new StdObject;
$a = array();
$i = 1;
$b = false;

echo serialize($o),"\n",
     serialize($a),"\n",
     serialize($i),"\n",
     serialize($b),"\n",
     serialize(array("A"=>$o,"B"=>$a,"C"=>$i,"D"=>$b)),"\n",

?>

... and yes there are uses for it. what do you want to do?


~Nick Couloute
co-owner/Web Designer
Sidekick2Music.Com

~Nick Couloute
co-owner/Web Designer
Sidekick2Music.Com

--
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