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
Explain the visibility of the property or method?
Tell me what is the main difference between php 4 and php 5?
How cookies are transported from browsers to servers?
How is traits used in php?
What is mvc php?
What is use of count() function in php?
Explain scalar type declarations in php7?
Write down the code for saving an uploaded file in PHP.
What is the use of get and post method in php?
Which operator is used to combine string values in php?
How to convert strings to upper or lower cases?
What are the differences between mysqli_connect and mysqli_pconnect?
Can you define an array argument as a reference type?
What are super global variables in php?
Can I use node js with php?