Tag: magic methods

  • Serializing PHP objects into JSON with JsonSerializable

    JSON (JavaScript Object Notation) is a handy data interchange format that’s overtaken XML in a very short time for a lot of API use cases – and rightly so. It’s easy to use, bandwidth efficient, and widely supported across platforms and languages. PHP is still one of the most widely-used web scripting languages. It’s perhaps […]