Welcome Guest, Not a member yet? Register   Sign In
What's the best way to handle a function with multiple parameters...
#2

[eluser]Buso[/eluser]
what I usually do is to send an array instead. Then check if isset() for each key, OR set a default value for it.

eg:

Code:
isset($options['create_dropdown']) OR $options['create_dropwdown'] = FALSE;


Messages In This Thread
What's the best way to handle a function with multiple parameters... - by El Forum - 06-29-2010, 03:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB