php json_decode
时间: 2023-10-04 18:03:42 浏览: 47
php-json:函数 json_encode 和 json_decode 用于早期版本的 PHP (< 5.2.0)
json_decode is a PHP function that is used to decode a JSON string into a PHP variable. The function takes a JSON string as its argument and returns a PHP variable that corresponds to the decoded JSON data. The decoded data can be an array, an object, or a scalar value. The function can also decode JSON data into objects of custom classes, if the objects have the appropriate properties and methods. The function is useful for working with JSON data that has been received from an external source, such as a web API or a database.
阅读全文