Unless you jailbreak your iPhone, it's pretty hard to get a virus on it. Not impossible, but most people never come across a virus. And if you did get one, I don't think you'd be able to tell. But, luckily, you can always restore your iPhone from iTunes if you ever feel like you have a virus and you'll be good to go.