note 38751 deleted from functions.arguments by tomsommer

From: Date: Sun, 27 Jun 2004 02:14:34 +0000
Subject: note 38751 deleted from functions.arguments by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-71850@lists.php.net to get a copy of this message
Note Submitter: arjini@mac.com ---- A little note on defaults... <? $default_day = date('j'); function test($var_1='', $Day=$default_day) { } ?> Will throw a parse error. <? define('DEFAULT_DAY', date('j')); $default_day = date('j'); function test($var_1='', $Day=DEFAULT_DAY) { } ?> Works just fine.

« previous php.notes (#71850) next »