Output array that contains Unicode characters in JSON format (for PHP5.3 or above)
array_walk_recursive($array_has_unicode_charaters, function(&$item, $Key){ if(is_string($item)){ $item = urlencode($item); } }); $json->data=$array_has_unicode_charaters; echo urldecode(json_encode($json));
No comments:
Post a Comment