1. Functions with Arbitrary Number of Arguments
You may already know that PHP allows you to define functions with optional arguments. But there is also a method for allowing completely arbitrary number of function arguments.
First, here is an example with just optional arguments:
Now, let’s see how we can build a function that accepts any number of arguments. This time we are going to utilize func_get_args():
2. Using Glob() to Find Files
Many PHP functions have long and des...
Online shopping is the best thing since sliced bread!
Online shopping is a new way to shop - so someone "invented/discovered/developed" this new way to shop. Many years ago people ate bread but the bread was not sliced, so they had to pull the bread apart using their hands. Then someone invented/discovered/developed a new way to make the bread easier to handle - they cut the loaf into slices of bread. That was a small invention - not the most important invention in the history of the world, bu...
Thank you for taking the time to visit my blog! Take a second to peek around and check out some of my previous posts. Of course, I would love to find out what you think as well, so make sure to comment. See you around!