One thing that PHP doesn't allow is the creation of multiple functions with the same name. If you try this then PHP will give you a fatal error. Creating different functions with the same name is useful if you want to pass different parameters to a function that produces the same result. There are two ways around this problem.
The first is that you can pass the function an array of the items that you want. You can then use this array in the function to do whatever you want. For example.