Question:
PHP serialize serialize. The manual says that it can convert an array or object into a string to facilitate transmission and storage.
But I don’t know when to use it and when not to use it?
For example, I want to make a news system, which contains title, author, content, publication time, and many other fields. During transmission, I will serialize
it into a string and store it in the database. , there is no need to create a lot of fields in the database
and then deserialize them when used. Is this better than not serializing and building a lot of fields to store?
Answer:
Can convert an array or object into a string for easy transmission and storage.