PHP Tutorial

A web server programming language.

PHP Functions

PHP Functions

The real power of PHP comes from its functions.

PHP has more than 1000 built-in functions, and in addition you can create your own custom functions.

Create a User Defined Function:

function functionName() {
  code to be executed;
}

A function name must start with a letter or an underscore. Function names are NOT case-sensitive.

Try It Yourself

Edit the code below and click Run to see the result live.

Source Code
Result
Topics