Function Two

This is inside Function two() a = 2

 

CODE FOLLOWS

<?php

    
include('includes/header1.php');    

    
// code
    
error_reporting(E_ALL);    // set error reporting to all

    
echo('<h1>Function Two</h1>');

    
//============= functions ===============
    // function two ---------
    // simple function that assigns a variable and echo's that value inside the function

    
function two()
        {
        
$a 2;
        echo(
"<p>This is inside Function two() a = $a</p>");    
        }

    
two();    // <-- this is how function two() is called

                            
    
include('includes/footer1.php');    
?>