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!
Well I have a registration form, and I made a function that will add all the values into the specified table. So it was a case of saying something like this.
if ($submit) {
foo($apples,$pears,$lemons);
}
All I really need is confirmation on which is the 'better' method. if there is no problem doing it either way, then I will useto the foo($apples,$pears,$lemons); option.
A general principle of application design is to minimise variable scope as much as is reasonable. That way, it's much easier to track down what's causing a problem if sopmething goes wrong.