(a) It shall be unlawful for any minor child to play in the streets of the city. (b) It shall be unlawful for any parent, guardian, or other person having the control or custody of any minor to permit, allow, or encourage such minor to play in any street in the city.