In php ,how can i get checked files in separate arrays such that input[] and output[] in php

I have two types of list of files(inputfiles and output files), both types of files are in *.xls format,  , how can i get checked files from list of files in separate arrays such that input[] and output[] in php.
In php ,how can i get checked files in separate arrays such that input[] and output[] in php
===


I have two types of list of files(inputfiles and output files), both types of files are in *.xls format,  , how can i get checked files from list of files in separate arrays such that input[] and output[] in php.