amfPHP Typed Object Example

JSON doesn't support strong typing. But if you set _explicitType on the objects you send, amfPHP will read that as a type.

In this example, you can send an object with _explicitType set to "UserVo1" or "UserVo2". The server only has a PHP class for UserVo1, but can handle both.