0

Possible Duplicate:
How to pass variable number of arguments to a PHP function

I make my framework in php I want to have variable function arguments ex

if I have 2 parameter

    $a,$b;

the function become

    function name($a,$b);

and if I have 3 parameter

    $a,$b,$c;

the function become

    function name($a,$b,$c);
0

1 Answer 1

0

Check out http://www.php.net/manual/en/functions.arguments.php#functions.variable-arg-list. Is that what you're looking for? If not, can you just accept an array?

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.