function getZones() { $imageId = $_POST["imageId"]; echo json_encode(Resources::getZones($imageId)); }