Why does my IPhone keep on turning off and on?

Okay, It keeps on turning off and on. Even on a full charge. Its a iphone 5. I've heard this version of the iphone has many glitches. I've replaced the charger many times too.

You probably bought a defective iPhone, you will most likely need to return it and get another one. If you return it soon, you may get a full refund

Hope this helped!

Could be a million reasons why. Without having the phone in my hand, i can't answer that question. But i can tell you the i5 is very glitchy. Apple was so disappointed in their sales of the 5 they stopped making parts for them. But take it to apple, especially if its brand new. SHould b able to fix it or swap it for new.