But it's not just about charging. Apple's MagSafe for iPhone allows for ... using a magnet and can easily detach in the event the cord is accidentally pulled from the laptop.
If you want to try avoiding this, Apple recommends that you clean your charging cable with a damp cloth, wipe it up and down its length, and then dry it off with a clean, dry cloth. Regardless of ...