note 52564 rejected from function.array-reduce by nlopess

From: Date: Fri, 06 May 2005 18:52:06 +0000
Subject: note 52564 rejected from function.array-reduce by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-89029@lists.php.net to get a copy of this message
Note Submitter: jhedstrom xxATxx desc xxDoTxx org ---- In the example above $c = array_reduce($a, "rmul",10); gives the expected 1200. However, if called without the "optional" argument, $d = array_reduce($a,"rmul); one gets a result of 0. If the third argument is truly optional, shouldn't this return 120?

« previous php.notes (#89029) next »