All ordinances of a city of the first class shall be passed pursuant to such rules and regulations as the city council may provide, and all such ordinances may be proved by the certificate of the city clerk under the seal of the city. When printed or published in book, pamphlet, or electronic form and purporting to be published by authority of the city, such ordinances shall be read and received in evidence in all courts and places without further proof. The passage, approval, and publication or posting of such ordinance shall be sufficiently proved by a certificate under the seal of the city from the city clerk showing that such ordinance was passed and approved, and when and in what paper the same was published, and when and by whom and where the same was posted. When ordinances are published in book, pamphlet, or electronic form, purporting to be published by authority of the city council, the same need not be otherwise published and such book, pamphlet, or electronic form shall be received as evidence of the passage and legal publication of such ordinances, as of the dates mentioned in such book, pamphlet, or electronic form, in all courts without further proof.