News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

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

Brian Swan's Blog: Using the Windows Azure Tools for Eclipse with PHP

Paul Jones' Blog: Solar 0.27.0 and 0.27.1 Released

Chris Risner: Mobile Geolocation Apps with Windows Azure Websites Part 1: The PHP Code

PHP-Tools Blog: Der Zauberlehrling - Sorcerer's Apprentice

PHPit.net: An Introduction to the Winbinder Library (Part 1)


Community Events

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


library community extension introduction api interview opinion laravel5 podcast release framework version language unittest example laravel conference php7 series voicesoftheelephpant

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