Functions in PHP
Tutorials on custom function-making in PHP.
- 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 :-)
- How we can use the PHP's exit function to stop the execution of remaining code.
- About using nested functions in PHP (functions inside of functions).
- 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.