How will apple replace my iphone 4 if they don't sell it anymore?

Has anyone had any experience of bringing back an iphone that apple no longer sell? How will they replace it? I'm uncertain about taking a refurb one.
someone help

Apple doesn't send out new ones for replacements only certified like new devices which are refurbished. That will have to be sufficient. If not, then you can always purchase a new device at retail, the 4s is still available.

You don't have an option, they give you a reburbished one if it needs replacing (but refurbished is actually made new as they replace any bad parts, etc)