Using the iPhone alarm
Coming from a Nokia I found it frustrating that you can't completely turn an iPhone off at night and be woken by the alarm. Thankfully there is a workaround.
The problem
Like everything on the iPhone, the alarm looks amazing. But the one problem is that it doesn't work when the iPhone is completely switched off. You need to leave the iPhone in sleep mode. Sleep mode accepts incoming calls and texts as well as continuing to check for emails. Unless you go through and change your sound settings you'll be woken in the night by emails and texts. This seems a bit of an oversight to me and something I certainly miss about my old Nokia.
The solution
Although this really could do with a proper fix you can workaround the problem by turning on Airplane Mode. You'll find this in Settings at the top of the menu.

Turn this on and it disables networking and bluetooth so the phone won't be able to check emails or connect to the network. This means you won't get woken up in the night by emails, SMS messages or phone calls.
You still have to remember to turn Airplane Mode off in the morning but until there is a better solution other than buying yourself an alarm clock this will do!
Possibly related
- 22 Nov 2007 » Running ExpressionEngine on Media Temple's (dv) Part 1
- 07 Oct 2006 » Writing Good XHTML and CSS Part 2
- 08 Sep 2006 » 10 Tips For Print Designers Coming To The Web