When you connect the iphone to ANY wireless point, it will remember them - so as soon as you are within range it will automatically switch to the wireless point instead of 3G.
For example, as I pull into my drive when I get home, my phone switches over to my wireless in the house automatically.