note 69078 deleted from function.array-reduce by bjori
| From: | bjori@php.net | Date: | Tue, 22 Aug 2006 13:42:05 +0000 |
| Subject: | note 69078 deleted from function.array-reduce by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-116169@lists.php.net to get a copy of this message | ||
Note Submitter: mike.vasiljevs Aa Tt gEEE mail dot com
Reason: useless
----
..actually initial does have to be an int, and THAT is the problem. I do not have enought
time/patience to modify code, but developers, please could not change initial to any value (e.g. not
only int). thanks!
In one case I needed to use an array: so function goes like:
args: $acu, $value
{
...
if (is_array($acu)
$acu = array();
array_push($acu, do_something_with($value));
return $acu;
}