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
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
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,
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
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
: 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
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
7 matches
Mail list logo