PHP·98 questionsWhat is serialization?SaveUpdated: 2026-08-31Answer•serialize() — object to string.•unserialize() — back.•For saving to file/DB.•JSON is preferable for exchange.•__sleep(), __wakeup() — magic methods.Ask AI to clarifyWas this answer helpful?HelpfulNot helpfulSuggest an improvement