Somewhat obvious but very useful. I call it the DMR model. Nothing complicated but it's helped organize my coding quite a bit. I re-use this template a lot so I'm putting it up here for easier access:
/* fx
*************************************************/
function NAME()
{
// *** DATA
// *** MANIPULATE
// *** RETURN
} # end Fx
/*______________________________________________*/
keywords: PHP, function, template, DMR