note 31466 deleted from language.oop by aidan

From: Date: Sat, 03 Jul 2004 14:53:56 +0000
Subject: note 31466 deleted from language.oop by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-72449@lists.php.net to get a copy of this message
Note Submitter: chris@dontwantspam.com ---- Even though you can't set a default value for an argument like this: function foo($bar = 'rar') { // do stuff } You can use the func_get_arg, func_get_args, and func_num_args on class methods. function foo() { $bar = func_num_args >= 1 ? func_get_arg(0) : 'rar'; }

« previous php.notes (#72449) next »