BCA Practical 7

Practical 7 : Write a PHP program which is define different variable

<html>

  <head>

  <title>Define Variable in PHP</title>

  </head>
<body>

  <center>

  <form name="f1" method="get">

<?php 
 $a=5;

  $b="6";

  $c=5.2;


  $sum=$a + $b + $c;

  echo "<b>Sum = " .$sum. "</b>";

  ?>

  </form>

  </center>

  </body>

  </html>


EmoticonEmoticon