ID: 10432
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
PHP Version: 4.0.4
Assigned To: 
Comments:

Don't think this is neccesairy, as you can do this:

function foo ($param1 = "time")
{
    echo $param1();
}

This will execute time(); and show the response.

Derick

Previous Comments:
---------------------------------------------------------------------------

[2001-04-21 10:19:44] [EMAIL PROTECTED]
function foo(parameter1, parameter2=value, parameter3=any_php_function(), 
parameter4=an_user_function()) {
    statments
}

Example:

function foo($anytime=FALSE) {
    if(!$anytime) $anytime=time();
    statments
}

function foo($anytime=time()) {
     statments
}


---------------------------------------------------------------------------



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10432&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to