Just bought a new iphone charger and for some reason it only charges for 10secs and stops working, why? I know its not the plug or iphone?

Just bought a new iphone charger and for some reason it only charges for 10secs and stops working, why? I know its not the plug or iphone? - 1

Bad charger