Beste Forbrukslån 2017 | Paras Pikavippi 2017 | Søk Kredittkort | Strømpriser | Beste Brannalarm | Forsikringsselskaper | Beste Mobilabonnement | Takst på Hus
Php

PHP Types of Operators Tutorial

PHP Programming is used in a wide variety of operators. Notable among these is

  • Arithmetic Operator
  • Assignment Operator
  • Increment/decrements Operator
  • Logical Operator
  • Comparison Operator
  • Concatenation Operator
  • Conditional Operator

Practice Project

<html>
<head>
<title> www.trickbd.com.bd</title>
<style>
body{background: #00cc99 ; color: #000000;}
h2{color: #663300;}
h1{color: #CC00CC;}
</style>

</head>
<body>
<?php
$a=25;
$b=35;
$c=10;
$c=($a+$b)*$a-$b;
echo “( A + B ) × A – B = “.$c;
echo “<br />”;
echo ” A = “.$a;
echo “<br />”;
echo ” B = “.$b;
echo “<br />”;
if($b>$a)
{echo “<p>The largest value is B</p>”;}
else
{echo “<p>The largest value is A</p>”;}
$d=true;
$e=false;
$f= !$e;
echo “F = “.$f;
echo “<br />”;
for($i=0; $i<6; $i++)
{echo “The value of I = “. $i.”<br ?>”; }
echo “<br />”;
for($j=10; $j>4; $j–)
{echo “The value of J = “. $j.”<br ?>”; }
?>

</body>

</html>

  • At the top of the program used by +, -, * eyarithametika operator.
  • = Assignment operator to use the program.
  • ++ Increment operator used in the program.
  • Used the program – impedimenta operator.
  • Program used <,> Ramakrishna operator.
  • Program used &,! Logical operator.

 

Comments

comments

About the author

Toriqul Islam Tusher

বলার মত কিছু নাই!

Leave a Comment