PHP Function, Cookies, Session examples
1. PHP Program to use of user-defined function. <?php function msg() { echo “Hello from msg function!”; } function test() { echo “Hello from test function!”; } test(); echo “<hr>”; msg(); ?> Output of above code is… 2. PHP Program to use of function with parameters. <?php function add($a, $b) { $c=$a+$b; echo “sum=”, $c; …