Section 1. Be it enacted, &c., That from and after the passage of this act, it shall be lawful for any policeman residing in any borough, who shall be duly appointed or elected to the office of constable in said borough, or any ward thereof, to hold and exercise said office, and to demand and receive all costs, fees and emoluments pertaining thereto, as allowed by law.