PHP Functions

Built-in Function Example

Original text: learning php

Using strtoupper(): LEARNING PHP

User-Defined Function Example

Welcome to Activity 3, Zubia!

Explanation

Functions are reusable sections of code that perform specific tasks. PHP has built-in functions that are already available to use. Programmers can also create their own functions. A function can receive information, perform an action, and return a result when it is called.

Back to Activity 3