Using nested functions
<? function display_footer($site_name) { function display_copyright($site_name) { print "© ". date("Y"). " $site_name."; } print "contact us<br>"; display_copyright($site_name); } $site_name = "PHP"; display_footer($site_name); ?>