Any way to fix an iPhone charger?

Hi
My Dad gave me an iPhone charger and after a while you had to hod the wire in a certain way for it to work bt my friend broke it. He's gonna be really angry when he finds out is there any way I can fix it?

Buy a new one, or duct tape.

Go and buy another one, phone shops have bundles of used one that work

Have it replaced by Apple.

Have it replaced if it's covered by the warranty