#26. PHP Function with Parameters

 Function with Parameters


Run code:

<?php

// function fun($name){

// echo "Hello $name . <br>";

// }

// fun("Aqib");

function sum($a ,$b)
{
    echo "Total Sum is:" . $a + $b;
}
sum(10,20);
?>

Comments

Popular posts from this blog

#30. PHP Recursive Function