note 20482 deleted from function.serialize by victor

From: Date: Sat, 24 Aug 2002 07:33:56 +0000
Subject: note 20482 deleted from function.serialize by victor
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-35437@lists.php.net to get a copy of this message
There is actually a special fieldtype in (My)SQL to store arrays and objects. This type is called BLOB. It also has a TINY, MEDIUM and LONG variant to suit your space needs. This is actually quite the same as an TEXTfield (see the manual). The only difference seems to be that you dont have to add the slashes. If you just store the serialized object in the database you can pull it back out and unserialize it without having to add and strip slashes. I think this is the only use for the BLOB type but a very usefull one.

« previous php.notes (#35437) next »