<?php
class Test {
private function testFunction($arr) {
array_walk_recursive($arr, array('ControllerModuleStickyLabels','alt_json_encode_callback'));
return mb_decode_numericentity(json_encode($arr), array (0x80, 0xffff, 0, 0xffff), 'UTF-8');
}
static private function alt_json_encode_callback (&$item, $key) {
if (is_string($item))
$item = mb_encode_numericentity($item, array (0x80, 0xffff, 0, 0xffff), 'UTF-8');
}
}
$a = new Test();
preferences:
37.06 ms | 402 KiB | 5 Q