IPhone 4 will not charge, can I get a replacement iPhone for free?

I have a white iPhone 4 and for some reason, its not charging. My uncle has an iPhone and he put the charger in his phone and it worked. He told me the phone's messed up, not the charger. He also said to go to Apple. I have no clue why its not charging and why its messed up. Question is, can I get a replacement iPhone for free if its still under warranty? I just got the iPhone 4 about a month ago.

Yes you can. Make sure you backup everything beforehand.

You should b able to walk right into apple, tell them just that, and they will run to the back and walk out with a new one for you. Its under warranty which is always good, but more importantly its a phone problem, nothing you have done or did. And even if it is something uve done, as long as there's no major damage to the phone you should b golden.

Yup, apple will replace it for free, or they will look at the battery and if its bad they will swap a new one in for you. Did you run the battery to zero? If you did that its fine, its just that you have to leave it plugged in for a while before the charge shows up, so if thats the case just plug in into a wall (wall, not pc, wall is faster charging) and leave it for several hours and you will see it charging.

Yes, you should be able to get a replacement one for free since you have warranty, however all your data will be lost unless you have a back up of it.