Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
By the sound of it, your 'phone is seriously devoid of TLC! Therefore, I wouldn't guarantee Apple would offer you a replacement under Warranty. However, if they don't, they will most likely give you the opportunity to buy a replacement.

Such replacements are usually refurbished items which are essentially as good as new (if not better).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.