PHP Basic Function Usage


Example

A basic function is defined and executed like this:

function hello($name)
{
    print "Hello $name";
}

hello("Alice");