Functions

Built-in Function: date()

The current date is: 2025-03-12

User-defined Function: greet()

Hello, Professor! Welcome to my amazingly simple websites!

What are Functions?

How functions work is similar to that of block of code that can re-used as many times it needs throughout the websites. As for the bult-in PHP functions as shown in the date(). This is a core functionality that is already incorporated into php, so we didn't need to hard-code it ourself.

Go Back