Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

php even uneven code example

Example 1: 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";
}

Example 2: php odd or even

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

Tags:

Php Example

Related

javascript form data object code example linux install package from tar.gz code example how to tar zip file code example c# write a function method code example moment convert string dd/mm/yyyy to date code example how come back in python code example loop through nested objects C# code example new column using if else pandas code example c# where condition code example preg replace span end break php code example discord js userid to username code example element wise product python code example

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy