PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
of course it is possible and a common way to combine functions. Remember to pray attention to the availability of the variable you will use (unless you pass them or you set them as global inside the function, the variables will be only locally available if declared/assigned inside the function)
webspider wrote:Are you talking about recursion function?
The example written by php3ch0 seems a "scope" question. I mean, calling a foreign function inside another function. Recursion would be calling the function inside itself.