<?phpfunction ternary ($C) {$T = ( is_int( $C / 2 ) ) ? 1 : 0 ;return ($T);}echo ternary (0);echo ternary (1);echo ternary (1.1);echo ternary (-1);echo ternary (-2);?>