ce it is how you want it,
you will find that it is very 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 argu
>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,
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
c
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
te Fucks" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: 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
>
PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 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_somet
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
7 matches
Mail list logo