What are php Functions? Why do we have to use it? How do we use it?
Functions are a very necessary component of php as a matter of fact not just php every programming language. They are amazing, time saving, efficient, fast and gorgeous (heh a bit cheesy? maybe.) Using functions within your code also tends to impress others if you are using the correct syntax for the function and write clean code.
I’ve made a diagram of how a function works so here it is, click on the image to enlarge it.