how to upload multiple videos using php code example

Example: upload multiple file like video or images in php or html with one tag

function reorganize($files) {
    foreach ($files as $var => $params) {
        foreach ($params as $name => $i) {
            foreach ($i as $num => $val) {
                $images[$var][$name] = $val;
                $arr[$num] = $images;
            }
        }
    }
    return $arr;
}

Array (
     [0] => Array ( 
         [image] => Array (
             [name] => white-rabbit-med-crop.jpg
             [type] => image/jpeg 
             [tmp_name] => E:\xampp\tmp\phpC008.tmp 
             [error] => 0 
             [size] => 343326 ) 
        ) 
    [1] => Array ( 
         [image] => Array ( 
             [name] => white-rabbit-med-crop.jpg 
             [type] => image/jpeg 
             [tmp_name] => E:\xampp\tmp\phpC008.tmp 
             [error] => 0 
             [size] => 1429802 )
        )
)

Tags:

Php Example