Defining and Calling a two-argument function,
<?
function page_header4($color, $title) {
print '<html><head><title>Welcome to ' . $title . '</title></head>';
print '<body bgcolor="#' . $color . '">';
}
?>
//Multiple optional arguments
page_header4('66cc66','my homepage');
Related examples in the same category