private static function utf8_encode(&$mixed)
    {
        if (is_array($mixed) || is_object($mixed)) {
            foreach ($mixed as &$value) {
                self::utf8_encode($value);
            }
        } else {
            if (is_string($mixed)) {
                $mixed = utf8_encode($mixed);
            }
        }
    }
private static function utf8_encode(&$mixed)
    {
        if (is_array($mixed) || is_object($mixed)) {
            foreach ($mixed as &$value) {
                self::utf8_encode($value);
            }
        } else {
            if (is_string($mixed)) {
                $mixed = utf8_encode($mixed);
            }
        }
    }
private static function utf8_encode ( & $ mixed ) { if ( is_array ( $ mixed ) || is_object ( $ mixed ) ) { foreach ( $ mixed as & $ value ) { self :: utf8_encode ( $ value ) ; } } else { if ( is_string ( $ mixed ) ) { $ mixed = utf8_encode ( $ mixed ) ; } } }
Recursively encode via UTF8.

@param $mixed
Recursively encode via UTF8 .