No need to disable 3G. iPhone will always join a known wi-fi network automatically, whether at home or at work. So, if you're at work and there's a wi-fi hotspot available that you've already joined before, iPhone will join it. If no network is available then 3G will be selected automatically.