Voting

: eight minus six?
(Example: nine)

The Note You're Voting On

chris at willowsconsulting dot ie
12 years ago
To convert all values of an array in UTF8, do this:

<?php

function convert_before_json(&$item, &$key)
{
$item=utf8_encode($item);
}

array_walk_recursive($your_array,"convert_before_json");

?>

<< Back to user notes page

To Top