PHP·98 questions

What is serialization?

Answer
serialize() — object to string.
unserialize() — back.
For saving to file/DB.
JSON is preferable for exchange.
__sleep(), __wakeup() — magic methods.
Was this answer helpful?

More questions in this topic

Related questions from other topics