Thankfully, there are two easy ways to go about this on iOS: Silent mode and Do Not Disturb. Here's the difference between each and when it may be best to go with one setting over the other.