15 Program to demonstrate function return type in PHP

Program:
<?php



    function add($a,$b)

    {

        return $a+$b;

    }



    $c = add(10,20);

    echo "A+B: $c";

?>


Output:

Program to demonstrate function return type in PHP

Previous
Next Post »