<?php echo str_replace(array('[', ']'), '', htmlspecialchars(json_encode($result, JSON_NUMERIC_CHECK), ENT_NOQUOTES)); ?>