$id_pw =  substr($row[fcid], 0,3).str_repeat("*",strlen($row[fcid])-3); 
   echo $id_pw."<BR>";

 

아이디를 앞에 3자리를 남기고 뒤에 3자리를 *로 변경하기