Built-in Function Example

16

User-Defined Function Example

Donald Achirinde Activity 3 Functions

Explanation

Functions in PHP work as blocks of code designed to perform specific tasks like print messages. Functions execute only when called, which prevents overlapping excuted messages which would crowd the website and confuse users.