Ryan Bayne
asked on
PHP Function Parameter Auto Suggestions Possible?
Hi
I use Zend Studio.
Is it possible to add suggestions in a functions documenting for parameters, a range of possible values?
I have a function for displaying a notification with about 15 possible styles. Instead of memorising them all or constantly referring to the list it would be great if the possible values were offered.
Is this even possible?
I use Zend Studio.
Is it possible to add suggestions in a functions documenting for parameters, a range of possible values?
I have a function for displaying a notification with about 15 possible styles. Instead of memorising them all or constantly referring to the list it would be great if the possible values were offered.
Is this even possible?
Is this on a web page? Dropdown list? How do you decide what is possible?
A function is a term of art in PHP. You can set default values for function arguments like this:
function foo($s = 'ABC')
{
echo $s;
}
foo(); // ABC
foo('DEF'); // DEF
function foo($s = 'ABC')
{
echo $s;
}
foo(); // ABC
foo('DEF'); // DEF
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I never got a solution because it is not really available/possible.
I typed in my own work around for others.
I typed in my own work around for others.
ASKER
Meant to say, I'm now wondering not "I'm not wonder" jeeze.
Sure wish you had engaged in some dialog with us here.