-------------------------------------------------- ----------------------------------------
The code execution results are as follows:
Note:
1. In , name="upload_file[]" must be named in the form of an array, otherwise an error will occur: "Uninitialized string offset: 0", which means that your array key value is out of bounds
2. In $_FILES['upload_file']['name'][$i], upload_file is the name of the upload file marker in the form. When uploading multiple files, the third dimension subscript of the array $_FILES will automatically start from 0 Numbered in sequence.
File upload, PHP
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn