/** * Returns the status of a Tathva ID * Tested. */ function participantStatus($tid){ $p = new participant($tid); return json_encode($p->getConfirmStatus()); }