I know its Generates a storable representation of a value and used to access the objects across the php files but what if i dont use this function while storing the objects.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Let’s say you have some post data, but your database/persistent storage can’t be modified to store the new post data in separate fields.
You could serialize your $_POST array and store it in the persistent storage you’ve got. It’s useful for generating user-based CRUD applications. I’ve found the necessity of storing the POST as a “payload” of sorts quite invaluable at times.
Knowing you can do something, doesn’t mean you have to use it everywhere.