Functions in PHP

Tutorials on custom function-making in PHP.

  1. Functions are used to create a block of code, that we want to run multiple times. Creating a Function allows us to call this Function anywhere in the script. Take some time to learn :-)
  2. How we can use the PHP's exit function to stop the execution of remaining code.
  3. About using nested functions in PHP (functions inside of functions).
  4. PHP does not have named parameters build-in, but in this tutorial you can learn how to simulate the functionality with a bit of extra code.

Tutorials on custom PHP functions

This category is dedicated to tutorials about the creation of custom functions in PHP.

Custom functions can also be described as "methods" when such belong to a class.