• 单个文件上传与多个文件上传


    <?php
    //单个文件上传时的数组结构如下:
    $array = [
        'file' => [
            'name' => '',
            'size' => '',
            'error' => '',
            'type' => '',
            'tmp_name' => '',
        ],
    ];
    foreach ($array as $value){
        print_r($value);
    }


    $array = [
        'file' => [
            'name' => [
                0 => 1
                1 => 1
                2 => 1,
            ],
            'size' => [
                0 => 1
                1 => 1
                2 => 1,
            ],
            'error' => [
                0 => 1
                1 => 1
                2 => 1,
            ],
            'type' => [
                0 => 1
                1 => 1
                2 => 1,
            ],
            'tmp_name' => [
                0 => 1
                1 => 1
                2 => 1,
            ],
        ]
        ];
        foreach ($array as $value){
            print_r($value);
        }    
  • 相关阅读:
    Python_soket
    Python_正则表达式语法
    Python_math模块
    Python_random模块
    Python_os模块
    Python_time模块
    Java技能树-图片版
    读书笔记---《编写可读代码的艺术》
    Java代码优化建议
    Git常用命令
  • 原文地址:https://www.cnblogs.com/lujieting/p/12466349.html
Copyright © 2020-2023  润新知