News Feed
Jobs Feed
Sections




News Archive
Cohesive Web:
PHP serialization or Json
May 24, 2010 @ 12:04:05

On the Cohesive Web blog there's a new post looking at storing complex data types like data structures or objects effectively.

Think of a situation where you are working with some array. Now there may be some situations where you need to store the array and retrieve it back. If you are familiar with OOPS concept then objects are another type which you may need to store and retrieve. Serialization is the process by which you can convert an object or data structure into a sequence of bits which can stored and retrieve back.

They suggest an interesting option for storing object information - converting it to JSON instead of just serializing it and storing it that way. After running a few tests on the method, they found using the json method a bit better/lighter than the serialized way (for their purposes).

0 comments voice your opinion now!
serialization tutorial json object


blog comments powered by Disqus

Similar Posts

Abou Kone's Blog: Set up JSON action output in CakePHP 1.3

Abhinav Singh's Blog: Setting Nginx, PHP Fastcgi and XCache on a new Ubuntu

The Bakery: Seven New Articles/Tutorials

Lorna Mitchell's Blog: PHPUnit with Zend_Controller_Action_Helper

Developer.com: Threads Versus The Singleton Pattern


Community Events











Don't see your event here?
Let us know!


release framework symfony2 functional phpunit introduction testing rest development interview podcast community series usergroup database opinion zendframework2 conference language google

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework