I'd suggest doing a little bit of background legwork on basic programming concepts before jumping into "advanced PHP"
I will assume you mean user-defined functions. Seriously, it would be good (in general) to read up on user-defined functions, passing arguments, setting default values...