The Apple forum describes a problem in which some iPhones are randomly dropping Wi-Fi signals, then failing to reconnect to any network for a period of time. Many people think that the problem is caused by the iPhone overheating.
Apple Forum:
http://discussions.apple.com/index.jspa