What do you want to save?
Add Code snippet
New code examples
-
Other 2021-08-29 09:18:02
encode an array containing non-utf values
Note that if you try to encode an array containing non-utf values, you'll get null values in the resulting JSON string. You can batch-encode all the elements of an array with the array_map function: <?php $encodedArray = array_map(utf8_encode, $... Add solution