note 5711 modified in serialize by ronabop

From: Date: Tue, 17 Oct 2000 05:52:34 +0000
Subject: note 5711 modified in serialize by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-6549@lists.php.net to get a copy of this message
About serialize/unserialize on objects: Use this class to unserialize objects : class Unserializable { function unserialize($str) { $ary=unserialize($str); for(reset($ary);$kv=each($ary);) { $key=$kv[key]; if (gettype($this->$key)!="user function") $this->$key=$kv[value]; } } } http://www.php.net/manual/function.serialize.php

« previous php.notes (#6549) next »