iPhones are actually surprisingly sturdy.
The glass is an aluminosilicate based glass. It is not glass like we commonly know it, it's more like a ceramic that gets polished once out of the kiln. For the curious, just google for corning gorilla glass (that's the name of the product).