Phase control of attosecond pulses in a train