PHP Processing Multiple Arrays Together