Answer Posted / 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 View All Answers
What is a model in php?
What is the function of string in c?
What does the scope of variables means?
Inside a php function, what param needs to be set in order to access a global variable?
What is strstr php?
How do I debug php?
How can you tell if a number is even or odd without using any condition or loop?
What is the difference between public, protected and private?
Which PHP function would you use to send an email?
What is the default session time in php?
Is runtime polymorphism overriding?
Who is the father or inventor of php?
What are sql injections, how do you prevent them and what are the best practices?
How to open a file in php?
What is $_ request in php?