(a) Petitioners.--Except as provided under subsection (b), the costs and expenses of proceedings to change the charter of a city to a borough, including all costs of advertising, shall be paid by the petitioners.
(b) Exception.--If the vote of electors to change the charter of a city to a borough is in favor of the change, the cost and expenses under subsection (a) shall be paid by the city.