Skip to content

Instantly share code, notes, and snippets.

View dfurutani's full-sized avatar

Daniel Furutani de Oliveira dfurutani

View GitHub Profile
@maggo
maggo / gist:1414988
Created December 1, 2011 08:28
Recursive UTF8 encode
<?php
function array_encode(&$arr){
array_walk_recursive($arr, function(&$val, $key){
$val = utf8_encode($val);
});
return $arr;
}