It is unlawful for any person within the city to leave any horse or other riding or driving animal unattended upon any street without securely fastening the same; or to tie or fasten any such animal or any livestock to any public hydrant in the city, or within five feet (5') thereof, or to any tree, bush or shrub growing upon any street, or to be so tied, or to stand upon any street so that any such animal can injure any such tree, bush or shrub, or graze upon such street. (Prior code §§ 56000, 56002)