PHP array to CSV converter