If an iPhone won't charge up is there a way to get that fixed?

If an iPhone won't charge up is there a way to get that fixed?

Yes there's

Yes, you can take it to a place that replaces batteries and get a new battery, but before you do that, make sure weather it's the battery or the charger! This has happened to me before, so I got a new charger! Also, would you mind answering my question?

Ya its not the charger the phone had died on me one day and when i got home i put it on a couple chargers and nothing happened