note 82161 added to ref.array

From: Date: Sat, 29 Mar 2008 19:28:18 +0000
Subject: note 82161 added to ref.array
Groups: php.notes 
Request: Send a blank email to php-notes+get-137727@lists.php.net to get a copy of this message
This is the shorter way to flatten a array: <?php function array_flatten($a) { foreach($a as $k=>$v) $a[$k]=(array)$v; return call_user_func_array(array_merge,$a); } ?> ---- Server IP: 216.235.15.211 Probable Submitter: 24.207.61.48 ---- Manual Page -- http://www.php.net/manual/en/ref.array.php Edit -- https://master.php.net/note/edit/82161 Del: integrated -- https://master.php.net/note/delete/82161/integrated Del: useless -- https://master.php.net/note/delete/82161/useless Del: bad code -- https://master.php.net/note/delete/82161/bad+code Del: spam -- https://master.php.net/note/delete/82161/spam Del: non-english -- https://master.php.net/note/delete/82161/non-english Del: in docs -- https://master.php.net/note/delete/82161/in+docs Del: other reasons-- https://master.php.net/note/delete/82161 Reject -- https://master.php.net/note/reject/82161 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#137727) next »