Button on the top of iPhone?

What does the button on the top of the iPhone 4S do? Does it just put it to sleep when I press it once?

Can I still get calls and texts?

It puts it to sleep. Yes you can still get call and texts and…

Turn it to sleep. Yes and yes. It turns on when you get those. Hold it down for 5 seconds are swipe the thing and it turns off.

Yes you can still get calls and texts, if you hold it down for a few seconds the turn off slide will appear and when you slide it, it will turn off and then you won't be able to get any calls or texts till you turn it back on (hold same button for few seconds to turn on again)

That is the power/lock button. Yes it puts it to sleep when pressed once & yes you can still get calls and texts while like that.