BCA Practical 16

Practical 16 : Write a PHP program for crate a user define function.
<html>

  <head>

  <title>Practical : 14</title>

  </head>

  <body>

  <center>

  <?php 
 function fun($a,$b)

  {

  $sum = $a + $b;

  return $sum;

  }

  $ans = fun(10,5);

  echo "<h2> Sum = " .$ans. "</h2>";

  ?>

  </center>

  </body>

  </html>


EmoticonEmoticon