How does having school choice options affect the funding of public schools?

Public schools get a certain amount of money from the state for each student who is enrolled. When a student chooses to go to a private school, the public school does not get that money.