if($koltukk%4 == 2){ if($koltukk > 1000){ $koltukH = "B"; (int)$koltukR = ($koltukk / 4) + 1;//Doesnt work (int) } else{ $koltukH = "E"; (int)$koltukR = ($koltukk / 4) + 1;//Doesnt work (int) } } $koltukR = ($koltukk / 4) + 1; I want to get the $koltukR variable as an integer but i couldn't do it (int) did not work
(int)'s. They aren't valid in PHP the way you are using them.$koltukR = (int)(($koltukk / 4) + 1);$koltukHand$koltukk