How to write if condition between two numbers in php or laravel

Amit Kumar
Jun 23, 2021

--

In this tutorial im goin to describe how to write if else condition between two numbers in php or laravel.

<?php

$a= 65;
$b= 9;

if($a<$b)
{
echo "$a this is correct";
}

else{
echo "$b this is greater than $a";
}


?>

Thanks.

--

--

Amit Kumar
Amit Kumar

Written by Amit Kumar

Hi I am Amit Experienced Web Developer with a demonstrated history of working in the information technology and services industry.

No responses yet