codice:
if ((int)($i/2) == (float)($i/2)) {
  echo "PARI";
} else {
  echo "DISPARI";
}