note 69078 added to function.array-reduce
| From: | mike dot vasiljevsAaTtgEEEmaildotcom at osu1 dot php dot net | Date: | Tue, 22 Aug 2006 13:27:55 +0000 |
| Subject: | note 69078 added to function.array-reduce | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-116165@lists.php.net to get a copy of this message | ||
..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;
}
----
Server IP: 85.116.0.130
Probable Submitter: 84.92.197.113
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.array-reduce.php
Edit -- https://master.php.net/note/edit/69078
Del: integrated -- https://master.php.net/note/delete/69078/integrated
Del: useless -- https://master.php.net/note/delete/69078/useless
Del: bad code -- https://master.php.net/note/delete/69078/bad+code
Del: spam -- https://master.php.net/note/delete/69078/spam
Del: non-english -- https://master.php.net/note/delete/69078/non-english
Del: in docs -- https://master.php.net/note/delete/69078/in+docs
Del: other reasons-- https://master.php.net/note/delete/69078
Reject -- https://master.php.net/note/reject/69078
Search -- https://master.php.net/manage/user-notes.php