A couple of fancy PHP snippets you may want to check out...