Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
That thread answers your question...

Just plug your iPhone into iTunes, make sure it backs up, and then when you get a different iPhone plug it back in and choose the backup you just did.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.