Functions in PHP

Example:

The length of the text "Hello, World!" is: 13 characters.

The square of 5 is: 25.

Functions help organize code by breaking it into manageable pieces that perform specific tasks. Functions can be built-in or user-defined. Functions are called by using their name, followed by parentheses.