if(($ch1==$ch2) or ($ch1==$ch3) or ($ch1==$ch4)){ echo "ซ้ำ"; }
if(($ch2==$ch1) or ($ch2==$ch3) or ($ch2==$ch4)){ echo "ซ้ำ"; }
if(($ch3==$ch1) or ($ch3==$ch2) or ($ch3==$ch4)){ echo "ซ้ำ"; }
if(($ch4==$ch1) or ($ch4==$ch2) or ($ch4==$ch3)){ echo "ซ้ำ"; }