![]() ![]() Values true, false and null are returned as true, false and null respectively. For example, it can convert a JSON String to an array in PHP. It will also return scalar values or NULL for certain scalar values, such as simple strings, "true", "false", and "null". Returns the value encoded in json in appropriate PHP type. The PHP jsondecode is an inbuilt Function in PHP that converts a JSON String to PHP Object. Normally, json_decode() will return an object of \stdClass if the top level item in the JSON object is a dictionary or an indexed array if the JSON object is an array. The json_decode() function takes a JSON-encoded string as its first parameter and parses it into a PHP variable.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |