Hi,
In a function, when you have parameters, you would usually just do:
functionname(param, example)
But I want to make it so the user, when referencing the function, enters a variable name. For example, when my function is called, it should look like:
function($variable).
How do I do this? If I created the function would it be:
- PHP: Select all
function test($variable) {
echo $variable;
}
In that case would it actually display the variable name (INC the $)
Cheers!
Jack