Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Suppose a girl's period ended on 3 may and after 3 or 4 days the blood came again and went after 3 hours and she is fasting so is her fast broken and what about her salah?
What you’ve experienced is most likely spotting. In that case your fasts and prayers would be valid, but make sure to do wudu before each salat if it happens again. Allah knows best.
Like any library, Islam Stack Exchange offers great information, but does not offer personalized advice or legal verdicts, and does not take the place of seeking such advice from your Mufti, Imam, or other trustworthy Counselor.