Implementing an Interface8:07 with Alena Holligan
An interface defines the public facing interaction of an item. It does not define any implementation details about the inner workings of those interactions. By implementing an interface, we agree to implement the methods described in the contract of the interface.
Course: File Handling with PHP - JSON
The decoding in PHP 5 is handled by a parser based on the JSON_checker by Douglas Crockford. PHP 7 comes with a completely new and improved parser that is specifically written for PHP and licensed under the PHP license. Either version uses the following functions:
json_encode - Returns a string containing the JSON representation of the supplied value.
json_decode - Takes a JSON encoded string and converts it into a PHP variable.
You need to sign up for Treehouse in order to download course files.Sign up