answersLogoWhite

0


Best Answer

When defining your function, do not put any arguments in the definition (e.g. function myFuntion()).

Inside the function, you can use func_num_args() and func_get_arg($number) to get the function's arguments.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write a function with a variable number of input elements in PHP?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Do the dependent variable act as the input of a function and the independent variable act as the output of the function?

No.


Describe how you can tell by looking at the graph of a function with variable is the input variable and which is the output variable?

You cannot.


What is another name for a input of a function?

Independent variable


An variable provides the input values of a function?

domain


The abscissa is?

The abscissa is the independent variable (or input) to a function.


What is an input variable?

an input variable is an input variable


How do you graph functions?

Suppose a function takes values of a variable, X, as its input, and that it converts it into an output value Y.Then the graph of the function, in the X-Y coordinate plane, is the set of all points (x, y) such that when you input the value x into the function, the output is y.Suppose a function takes values of a variable, X, as its input, and that it converts it into an output value Y.Then the graph of the function, in the X-Y coordinate plane, is the set of all points (x, y) such that when you input the value x into the function, the output is y.Suppose a function takes values of a variable, X, as its input, and that it converts it into an output value Y.Then the graph of the function, in the X-Y coordinate plane, is the set of all points (x, y) such that when you input the value x into the function, the output is y.Suppose a function takes values of a variable, X, as its input, and that it converts it into an output value Y.Then the graph of the function, in the X-Y coordinate plane, is the set of all points (x, y) such that when you input the value x into the function, the output is y.


How do you find the output of the function if the input is -2?

You replace the relevant variable with -2, and do any calculation, lookup, etc., specified in the function definition.


What is a dependent quantity?

the output of a function; a variable whose value depends on the value of the input.


What is depended quantity?

the output of a function; a variable whose value depends on the value of the input.


What is the output of a function a variable whose value depends on the input or independent variable?

the output variable is called the dependent variable. For example the function y = f(x) = 3x here x is independent and y is dependent; y changes when you change x


Is 3y plus 2 equals 0 a linear function?

It is not a linear function because it is missing x as the input variable