I have been learning syntax for PHP and practicing it. I come from a .NET background so masterpages always made things pretty easy for me when it came to headers and footer
I like using functions to print headers and footers instead of includes. You can fine tune the variable scope better that way.