Link to home
Start Free TrialLog in
Avatar of Ryan Bayne
Ryan BayneFlag for United Kingdom of Great Britain and Northern Ireland

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?
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

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
ASKER CERTIFIED SOLUTION
Avatar of Ryan Bayne
Ryan Bayne
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ryan Bayne

ASKER

I never got a solution because it is not really available/possible.

I typed in my own work around for others.
Meant to say, I'm now wondering not "I'm not wonder" jeeze.
Sure wish you had engaged in some dialog with us here.