Skip to content

Instantly share code, notes, and snippets.

View ElawadyNet's full-sized avatar

Elawady Elsayd ElawadyNet

View GitHub Profile
@umidjons
umidjons / files-array-normalize.md
Created March 31, 2014 14:35
Normalize $_FILES array when uploading multiple files (from php.net)

Normalize $_FILES array when uploading multiple files

When uploading multiple files, the $_FILES variable is created in the form:

Array
(
    [name] => Array
        (
            [0] => foo.txt