It is important to differentiate between regular bubbles and foam, as foam can stay in the toilet after flushing and may look like the foam from beer. If foamy urine is persistent, it is advisable to consult your doctor who will order some laboratory tests for further evaluation and potential treatment.