PHP: Converting __toString when calling json_encode using JsonSerializable interface Get link Facebook X Pinterest Email Other Apps - February 07, 2016 JsonSerializable { /* Methods */ abstract public mixed jsonSerialize ( void ) } When calling a json_encode on an object: See: http://stackoverflow.com/questions/401908/php-tostring-and-json-encode-not-playing-well-together And: http://php.net/manual/en/class.jsonserializable.php Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment