array to string conversion json phpp code example Example: php convert array to json {} = json_encode([]);