The entry of any plea of guilty or nolo contendere or the forfeiture of any bail posted for the violation of any provision of this chapter or for the violation of any other law or municipal ordinance shall have the same effect as a conviction after trial under such provision.