So überprüfen Sie eine sogar oder ungerade Zahl in PHP
$num = 85;
if($num % 2 == 0){
echo "this is even number";
}else{
echo "this is odd number";
}
nk
$num = 85;
if($num % 2 == 0){
echo "this is even number";
}else{
echo "this is odd number";
}
$num = 34;
if ($num % 2 == 0) {
print "It's even";
}
<?php
$number=1233456;
if($number%2==0)
{
echo "$number is Even Number";
}
else
{
echo "$number is Odd Number";
}
?>
$n=122;
if($n%2==0)
{
echo "$n is even number";
}