/** * Generates new Tathva ID's * Tested. */ function genTathvaId(){ $obj=new participant(); $temp=$obj->getLastId(); $temp=$temp+2002; $str='TAT'."$temp"; return $str; }