How to turn off imessage on iphone 5?

Hi well my friends keep puttin me in stupid group chats & i heard if you take off imessage it will stop, so how can i do it?

All you have to do is go into settings, and scroll down until you see Messages or iMessage (Sorry can't remember which) Then there will be a switch that says iMessage ON/OFF

Taking off iMessage won't take you out of the group chat but go to your settings, then go to messages and it'll say iMessage and you switch it off.