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

PREVIOUS NEXT
Code Example
Php :: how unset request parameter in laravel 
Php :: Creating a Basic Route in Laravel 8 
Php :: laravel print query with parameters 
Php :: php quit 
Php :: Pacific Daylight Time Zone php 
Php :: laravel create password hash 
Php :: get field acf 
Php :: concat and search in laravel eloquent 
Php :: eloquent get query log 
Php :: php install xdebug mac 
Php :: array_search 
Php :: Numbers Formater Decimal & Thousand Separator PHP 
Php :: how run phpunit test repeat 
Php :: laravel eloquent get last record 
Php :: CodeIgniter get_where order_by 
Php :: mysql get the last id php 
Php :: get post by taxonomy 
Php :: laravel update and insert transaction 
Php :: php carbon from timestamp 
Php :: php clean all output buffers 
Php :: route params link laravel 
Php :: taxonomy acf 
Php :: php write to file 
Php :: disable cors policy symfony 
Php :: carbon last day of month in timestamp 
Php :: check if user has role twig 
Php :: php json string to associative array 
Php :: previous month number in php 
Php :: php ternary operator 
Php :: laravel restore soft delete 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =