public static function sendArray2Browser($arr) { $json = json_encode($arr); echo JSONFuncs::send2Browser($json); exit; }