Function

A block of PHP code that has a name and it has a property that it is reusable it can be executed from as many different points in a PHP Program as required. Also known as a method (if it is inside a class). Most Joomla code is inside functions/methods.