If you have the iPhone 4 software then, if you double tap the big button at the bottom all the apps that are still running will appear at the bottom of the screen, if you hold your finger on one then it will flash up and just delete it. It don't delete off the phone just running in the background.
If you don't have the new software ignore everything I just typed.