note 64839 added to function.array-reduce

From: Date: Fri, 21 Apr 2006 15:03:38 +0000
Subject: note 64839 added to function.array-reduce
Groups: php.notes 
Request: Send a blank email to php-notes+get-108934@lists.php.net to get a copy of this message
For those used to more capable languages, note that (definitely in 5.1.2) the 'int initial' in the documentation really does mean "only int will work". You can't use array_reduce to build up an array by supplying an empty array for initial and appending to it in the callback. ---- Server IP: 64.71.164.2 Probable Submitter: 69.205.153.76 ---- 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 -- http://master.php.net/note/edit/64839 Del: integrated -- http://master.php.net/note/delete/64839/integrated Del: useless -- http://master.php.net/note/delete/64839/useless Del: bad code -- http://master.php.net/note/delete/64839/bad+code Del: spam -- http://master.php.net/note/delete/64839/spam Del: non-english -- http://master.php.net/note/delete/64839/non-english Del: in docs -- http://master.php.net/note/delete/64839/in+docs Del: other reasons-- http://master.php.net/note/delete/64839 Reject -- http://master.php.net/note/reject/64839 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#108934) next »