PHP Functions

Built-in Function

The word Panther has 7 characters.

User-Defined Function

Hello, Student!

Explanation

Functions are reusable sections of code that perform a specific job. PHP includes built-in functions such as strlen(), which counts characters in a string. We can also create our own functions. A function can receive information, perform an action, and return a result when it is called.

Back to Home