• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
optional parameters in functions

#3
[eluser]jedd[/eluser]
Mind, you don't *need* to mention the second parameter there - CI will happily ignore additional parameters that it doesn't know what to do with anyway. And, also, you don't need to set a default value for any of your parameters. If there's no default, the variable is not set (or set to NULL - I forget which, and it's easy enough for you to test).


Messages In This Thread
optional parameters in functions - by El Forum - 09-07-2009, 09:07 AM
optional parameters in functions - by El Forum - 09-07-2009, 09:16 AM
optional parameters in functions - by El Forum - 09-07-2009, 09:18 AM
optional parameters in functions - by El Forum - 09-07-2009, 11:41 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.