Functions in PHP

Built-in Function Example: strlen()

The length of the string is: 13

User-defined Function Example

Hello, Gerrardo!

Functions in PHP allow you to encapsulate code for reuse. Built-in functions like `strlen()` perform predefined tasks, while user-defined functions allow you to create custom behaviors.