Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php check if int is odd

$number = 15;
if ($number % 1 == 0) {
    echo "It's even";
}else{
    echo "oneven";
}
 
PREVIOUS NEXT
Tagged: #php #check #int #odd
ADD COMMENT
Topic
Name
8+9 =