Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is serialization / object serialization ?

Answers were Sorted based on User's Feedback



What is serialization / object serialization ?..

Answer / sloog

Serializing an object means converting it to a bytestream
representation that can be stored in a file. This is useful
for persistent data; for example, PHP sessions automatically
save and restore objects. Serializatioin in PHP is
mostly automatic--it requires little extra work from you,
beyond calling the serialize() and unserialize() functions:

$encoded = serialize(something);
$something - unserialize(encoded);

Is This Answer Correct ?    4 Yes 0 No

What is serialization / object serialization ?..

Answer / ranjan

Say we have some information in the form of object or array
and we want to store that into database then we should
serialize that and then we can store the returned string in
the database. While accessing we will have to unserialize that.

Also if we want to play with the string before we store the
above string into the database then we need to use it
everytime by unserializing it.

We can avoid this if we register this iobject with the
session and then nsession will automatically unserialize it
and we need not to unserialize it before playing or while
storing

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More PHP Interview Questions

Is php an object or array?

0 Answers  


how we can upload and view video files

2 Answers  


How to get a total number of elements used in the array?

0 Answers  


What are the steps involved to run php?

0 Answers  


What is $row in php?

0 Answers  


Why are sessions used?

0 Answers  


What is mean by an associative array?

0 Answers  


A process can run only in the background. State Whether True or False?

0 Answers  


Difference between get and post method.

0 Answers  


i am a php programmer can i be a java programmer?

3 Answers  


How does php serialize work?

0 Answers  


What is the difference between $message and $$message ?

7 Answers   Oracle, TouchStone,


Categories