<form action='' method='POST' enctype='multipart/form-data'>
<input type='hidden' name='MAX_FILE_SIZE' value='10000000'/>
<input type='file' name='myfiles[]'/><br>
<input type='file' name='myfiles[]'/><br>
<input type='file' name='myfiles[]'/><br>
<input type='file' name='myfiles[]'/><br>
<input type='submit' value='UPLOAD'>
</form>
<?php
//phpinfo();
echo"=====================================================================<br>";
echo count($_FILES["myfiles"]["name"])."<br>";
for($i=0;$i<count($_FILES["myfiles"]["name"]);$i++){
echo $_FILES["myfiles"]["name"][$i]."<br>";
}
?>