Functions

Example of a Built-In Function:
The number of characters in the sentence "My name is Kaeden Kehrmeyer" is 28.

Example of a User-Defined Function:
My name is Bob Johnson
My name is Kaeden Johnson
My name is Caleb Johnson
My name is Steve Johnson

A function in PHP is a block of reusable code that performs a specific task.