Function Examples

Built-in Function

Uppercase: HELLO WORLD

User-Defined Function

Hello, Tanner!

Functions allow PHP to group reusable blocks of code. You can create your own function, and have it be whatever code you want, that way when you reuse it you dont have to type the entire thing out all over again, you can just use the function shortcut you created.