My question is regarding default arguments -- is it possible to define a default
argument that is itself a variable?

I'd like to do the following:

    function archive ($max_size = 20560, $archive_dir = "${DOCUMENT_ROOT}/tmp/") 

but I seem to get parse errors unless I do the following:

    function archive ($max_size = 20560, $archive_dir = "/var/www/tmp/")

Is it possible to do something approaching the latter?

Monique Y. Herman
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to