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 the use of mysqli_real_escape_string() function?
Which will start a session?
What are the rules to determine the “truth” of any value which is not already of the boolean type?
What is the purpose of a query?
What changes I have to do in php.ini file for file uploading?
Write a php function to convert all null values to blank?
What is list in PHP?
How is a session id generated?
what is session_set_save_handler in PHP?
How do I stop a php script?
What is polymorphism in php?
Which programming language does php resemble?
Does php support polymorphism?
How to turn on the session support?
What is __ invoke in php?