I'm having a problem similar to this:
I'm trying write a function that takes an unknown amount of arguments (which can be changed by the user), but don't know the best (read most EFFICIENT) way of doing this.
The best idea I've had so far is to use a query string and a character ("/" for instance) as the argument separator.
EG, code would be...
fucntion print($a) {
(some code to split the string at "/")
}
$arg = "/print1/roint2/print3/print4";
print($arg);
This would not seem terribly efficient. Is there a way I could accomplish this with a database and global values? (the database would hold ther defined amount of args to expect, and what they are called)
Any ideas?