Hi,
How are you? Do you still experience the symptom that you mentioned? What other symptoms are present? If you are referring to the phlegm associated with coughing, this could be due to allergic or infectious issues and needs to be evaluated further by your doctor for proper diagnosis. Take care and do keep us posted.