note 109332 deleted from function.serialize by danbrown

From: Date: Mon, 16 Jul 2012 15:43:53 +0000
Subject: note 109332 deleted from function.serialize by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-189215@lists.php.net to get a copy of this message
Note Submitter: pineau dot olivier at neuf dot fr ---- class A { private $numA; public function getNumA() { return $this->numA; } public function setNumA($numA) { $this->numA = $numA; } } page 1 $a = new A(); $a->setNumA(10); $myA = serialize($a); $_SESSION['Aobj'] = $myA; page 2 $myA=$_SESSION['Aobj']; $a = unserialize($myA); echo $a->getNumA();

« previous php.notes (#189215) next »