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.

This site uses cookies, including third parties, to improve your experience and offer services in line with your preferences. By closing this banner, scrolling through this page or clicking on any of its elements will allow us to use cookies. If you want to know more or deny all or some cookies, go to the Policy Chapters section