Search
 
SCRIPT & CODE EXAMPLE
 

PHP

How to check even or odd number in php

$num = 85;
if($num % 2 == 0){
echo "this is even number";

}else{
echo "this is odd number";
}
Comment

php odd or even

$num = 34;
if ($num % 2 == 0) {
  print "It's even";
}
Comment

PHP Even Odd Program

<?php  
$number=1233456;  
if($number%2==0)  
{  
 echo "$number is Even Number";   
}  
else  
{  
 echo "$number is Odd Number";  
}   
?>  
Comment

check if a number is odd in php

function odd($var)
{
    
    return($var & 1);
}
Comment

PREVIOUS NEXT
Code Example
Php :: import csv file in laravel 8 
Php :: hi we add file in orders the other hide and order show in laravel view 
Php :: debugger not installed phpstorm 
Php :: can we acces session variable in two files 
Php :: install google binary ou firefox binary 
Php :: woocommerce create client account without email 
Php :: numberformatter gujarati 
Php :: propel find index 
Php :: getting key from env returns null laravel 
Php :: php square root 
Php :: Handling Email Verification Error for APIs 
Php :: Display out of stock products last (even after sort) - Woocommerce 
Php :: Parse error: syntax error, unexpected token "implements" in C:xampphtdocsmastervendoryiisoftyii2aseObject.php on line 78 
Php :: laravel not rollback even has error 
Php :: warning: parameter 2 to search_by_title() expected to be a reference, value given in 
Php :: custom post type wp 
Php :: add header image to woocomerce shop page 
Php :: mamp change php version 
Php :: data showing in single option instead of multiple option from json array 
Php :: m 
Php :: php array reduce 
Php :: show data as per url slug change in laravel 
Php :: wp+get author box in dashboard 
Php :: how to run php code in cmd 
Php :: how to create header in csv file inphp 
Php :: run specific seeder laravel 
Php :: buddypress groups dropdown 
Php :: change php variable value in javascript 
Php :: How to add page heading in FPDF PHP 
Php :: encrypt number 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =