note 104976 added to features.file-upload.multiple

From: Date: Tue, 19 Jul 2011 18:33:03 +0000
Subject: note 104976 added to features.file-upload.multiple
Groups: php.notes 
Request: Send a blank email to php-notes+get-181711@lists.php.net to get a copy of this message
I prefer something like this! <?php public function arrayImages ( &$file_post ) { if( empty( $file_post ) ) { return $file_post; } if( 'array'!==gettype($file_post['name']) ) { return $file_post; } $keys = array_keys($file_post['name']); $file_array = array(); foreach ($keys as $key) { foreach ($file_post as $res=>$item) { $file_array[$key][$res] = $item[$key]; } } return $file_array; } ?> ---- Server IP: 69.147.83.197 Probable Submitter: 201.85.52.226 ---- Manual Page -- http://www.php.net/manual/en/features.file-upload.multiple.php Edit -- https://master.php.net/note/edit/104976 Del: integrated -- https://master.php.net/note/delete/104976/integrated Del: useless -- https://master.php.net/note/delete/104976/useless Del: bad code -- https://master.php.net/note/delete/104976/bad+code Del: spam -- https://master.php.net/note/delete/104976/spam Del: non-english -- https://master.php.net/note/delete/104976/non-english Del: in docs -- https://master.php.net/note/delete/104976/in+docs Del: other reasons-- https://master.php.net/note/delete/104976 Reject -- https://master.php.net/note/reject/104976 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#181711) next »