Here is the code for Sanford regarding Fowl... I find it interesting that in Section 4-5 they say they're not allowed, while in section 4-6 they regulate what type of enclosure! I got this from municode.com - you can find almost every city's code there.
Sec. 4-5. Keeping of swine, poultry and goats.
No person shall keep or harbor within the city any pig, hog or other animal of the swine variety, chickens or other animal of the poultry variety, or any goats.
(Ord. No. 1998-26, § 93.04, 7-7-1998)
Sec. 4-6. Pens, coops and other enclosures.
(a) Location; sanitary maintenance. Pens, coops, and other enclosures and places where animals or fowl are kept or fed shall be located at such distance from dwellings and places of human activity, and at such distance from sources of water and food supply or preparation, as may be necessary to protect the public health. All such pens, coops, and other enclosures and places shall be maintained at all times in a clean and sanitary condition and so as not to constitute a public nuisance or give offense to persons in the vicinity thereof. Refuse therefrom shall be removed at least once per day and disposed of in a lawful and sanitary manner.
(b) Violations. The city manager, upon complaint by any responsible person, or on his own volition, may cause an appropriate city officer or animal control officer to investigate any pen, coop or other enclosure or place where any animal or fowl is kept or fed, and if the facts developed by such investigation appear to be in violation of subsection (a) of this section the city manager may direct the offender to take such corrective action as may be necessary, upon pain of prosecution for the violation if the offender fails to comply with the directive of the city manager.
(Ord. No. 1998-26, § 93.05, 7-7-1998)
Sec. 4-5. Keeping of swine, poultry and goats.
No person shall keep or harbor within the city any pig, hog or other animal of the swine variety, chickens or other animal of the poultry variety, or any goats.
(Ord. No. 1998-26, § 93.04, 7-7-1998)
Sec. 4-6. Pens, coops and other enclosures.
(a) Location; sanitary maintenance. Pens, coops, and other enclosures and places where animals or fowl are kept or fed shall be located at such distance from dwellings and places of human activity, and at such distance from sources of water and food supply or preparation, as may be necessary to protect the public health. All such pens, coops, and other enclosures and places shall be maintained at all times in a clean and sanitary condition and so as not to constitute a public nuisance or give offense to persons in the vicinity thereof. Refuse therefrom shall be removed at least once per day and disposed of in a lawful and sanitary manner.
(b) Violations. The city manager, upon complaint by any responsible person, or on his own volition, may cause an appropriate city officer or animal control officer to investigate any pen, coop or other enclosure or place where any animal or fowl is kept or fed, and if the facts developed by such investigation appear to be in violation of subsection (a) of this section the city manager may direct the offender to take such corrective action as may be necessary, upon pain of prosecution for the violation if the offender fails to comply with the directive of the city manager.
(Ord. No. 1998-26, § 93.05, 7-7-1998)