note 94875 deleted from function.array-reduce by danbrown

From: Date: Mon, 30 Nov 2009 13:05:06 +0000
Subject: note 94875 deleted from function.array-reduce by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-163409@lists.php.net to get a copy of this message
Note Submitter: sebastian dot krebs at kingcrunch dot de ---- @Hrobky: Your first example works at least since 5.3. <?php $arr = array(array(1), array(2), array(3)); $result = array_reduce($arr, 'array_merge', array()); // expected: $result == array (1, 2, 3) ?> It seems, that its now possible to give other values that int as initial value.

« previous php.notes (#163409) next »