php operators

php operators 0

PHP Operators and its Types

In the realm of PHP programming, operators serve as the building blocks for performing various tasks, from simple arithmetic calculations to complex logical operations. Understanding the diverse range of operators available in PHP is...

Logical Operators in PHP 0

Logical Operators in PHP

Program 1 <html> <head><title>PHP Relational Operators</title> <body> <center> <?php $per=78; if($per<35) echo “Fail”; elseif($per>=35 && $per<45) echo “III Division”; elseif($per>=45 && $per<60) echo “II Division”; elseif($per>=60) echo “I Division”; $ch=’S’; // $a=0; // $b=100;...

Relational Operators in PHP 0

Relational Operators in PHP

Program 1 <html> <head><title>PHP Relational Operators</title> <body> <center> <?php $a=50; $b=0; $c=20; var_dump($a && $b); // var_dump($b===$c) // var_dump($c<=>$a) //var_dump($a<=>$b); // when a is > then b +1 //var_dump($a<=>$b); // when a is ==...

Types of Operators in PHP 0

Types of Operators in PHP

Program 1 <html> <head><title>My First PHP Application</title> <body> <center> <?php $a=30; $b=10; // echo($a + $b);// 40 // echo “<br>”; // echo($a – $b);/20 // echo “<br>”; // echo($a * $b);//300 // echo “<br>”;...