My revised template for library-like include files. Simple enough, but since adopting the form as my standard, I've found development speed and quality has improved noticeably.
/*** DOCUMENTATION LAYER
AMVC Include Template
Directory: VAR
File: VAR.inc.php
Last Update: Feb 2006
Author: Tom Atwell (klenwell@gmail.com)
FUNCTIONS:
NAME()
NOTES:
______________________________________________________________________________*/
// NAME
/*____________________________________________________________________________*/
function NAME()
{
// *** DATA
// *** MANIPULATE
// *** RETURN
} # end Fx
/*____________________________________________________________________________*/
// Testbed
/*____________________________________________________________________________*/
/*____________________________________________________________________________*/
?>
keywords: PHP, template, library, include, function