Sunday, February 7, 2016

PHP: Converting __toString when calling json_encode using JsonSerializable interface

JsonSerializable {
/* Methods */
abstract public mixed jsonSerialize ( void )
}

When calling a json_encode on an object:

See:

And:

No comments:

Post a Comment