<?php $row = access::getArrayTypes(); if (!empty($row)) { echo json_encode($row); exit(); } else { exit(); }