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 :: laravel use function from another controller 
Php :: laravel form old value array 
Php :: illuminate/container requires php your php version (X.X.XX) does not satisfy that requirement. 
Php :: laravel carbon 
Php :: how to create config file in php 
Php :: update laravel .env variables dynamically 
Php :: how do we calculate average in laravel 8 
Php :: php postgresql number of rows 
Php :: convert an integer to a string in PHP 
Php :: zero padding php 
Php :: date diff in laravel 
Php :: php implode keys 
Php :: Wordpress disable admin bar to users except admin 
Php :: week day php 
Php :: file upload in php mysql 
Php :: number format without comma php 
Php :: laravel collection remove empty 
Php :: php artisan storage:link not working 
Php :: laravel global scope 
Php :: get from table laravel 
Php :: laravel call controller method from view 
Php :: increase php memory 
Php :: check for headers laravel 
Php :: doctrine query builder order by multiple 
Php :: wp_query post id 
Php :: __dir__ in php 
Php :: merge array 
Php :: laravel with callback 
Php :: concatener 2 variables php 
Php :: wordpress single post template 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =