[PHP] Function arguments

2003-08-15 Thread Hardik Doshi
Hi Group, I have a question on overloaded function. What is the best way to pass the arguments so it is easy to maintain in future if function behaviour changes by adding/removing one or more arguments? Currently i am passing arguments in array. But i think it is not the clean way to do it and

Re: [PHP] Function arguments

2003-08-15 Thread [EMAIL PROTECTED]
Hello, If you are worried about this issue your best option is to switch to an object oriented approach. all the best Hardik Doshi wrote: Hi Group, I have a question on overloaded function. What is the best way to pass the arguments so it is easy to maintain in future if function behaviour

Re: [PHP] Function arguments

2003-08-15 Thread Mike Migurski
What is the best way to pass the arguments so it is easy to maintain in future if function behaviour changes by adding/removing one or more arguments? Currently i am passing arguments in array. But i think it is not the clean way to do it and another approach i am using is functionName(arg1,

Re: [PHP] Function arguments

2003-08-15 Thread Jim Lucas
easy to work with functions formated like this. Jim Lucas - Original Message - From: Hardik Doshi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 15, 2003 8:53 AM Subject: [PHP] Function arguments Hi Group, I have a question on overloaded function. What is the best

[PHP] function arguments

2002-01-18 Thread Malte Fucks
Hi, how do i tell a function which arguments can be passed and which must be passed... example: function func($arga, $argb, $argc) { do_something_with_arga; do_another_thing_with_argb; and_if_argc_was_passed_do_something_with_it_too; } because i dont want to pass argc if i dont need it, and to

Re: [PHP] function arguments

2002-01-18 Thread Ben Sinclair
: Thursday, January 18, 2001 2:17 PM Subject: [PHP] function arguments Hi, how do i tell a function which arguments can be passed and which must be passed... example: function func($arga, $argb, $argc) { do_something_with_arga; do_another_thing_with_argb

Re: [PHP] function arguments

2002-01-18 Thread mike cullerton
Subject: [PHP] function arguments Hi, how do i tell a function which arguments can be passed and which must be passed... example: function func($arga, $argb, $argc) { do_something_with_arga; do_another_thing_with_argb; and_if_argc_was_passed_do_something_with_it_too; } because i dont