$kontrol = $tur["d"] + $tur["y"] + $tur["b"]; if ($kontrol != 23 ) { echo "Hata"; } else { echo "toplam 23"; }