Skip to content

Instantly share code, notes, and snippets.



Created Jul 25, 2014
What would you like to do?
json encode 兼容中文
function JSON($data)
arrayRecursive($data, 'urlencode', true);
$json = json_encode($data);
return urldecode($json);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.