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";
}
$num = 34;
if ($num % 2 == 0) {
print "It's even";
}
Also in PHP:
- @if (session('status')) laravel
- changer le format d'une date php
- curl php example
- check format have image laravel post
- docker lumen phpunit the request php extension dom is missing
- create laravel seeder
- check type of in php
- date('d') in php
- current date into time
- Allowed memory size of 1 ompocse
- php remove spaces from string
- array_key_exists() function
- ? for types in php
- echo 20 char string php
- auto generated password in php
- error reportin eall
- FT_USER
- download laravel for php 5.6 windows
- crrate model in laravel
- dispaly error
- check if string has a specifdic word
- encode image to base64
- date formatting php
- date( ) php