Built-in Function

The phrase "I love to count!" contains 16 characters.


User-defined Function

2 + 4 = 6
12 + 33 = 45
1 + 3 = 4

A function is a reusable code that performs a specific task. Predefined functions, like strlen(), are already included in PHP and can be used right away. User defined functions are created by the coder
using the function keyword, and can accept input through parameters and return a result using the return keyword. Functions help organize code, avoid repetition, and make programs easier to read and maintain.