Typically no, they will not effect your iPhone or any electronic devices for that matter. (be careful not to let magnets touch the back of your credit card.)
The magnets are very weak on those types of things.
Disclaimer: This is from personal experience... I'm not responsible if something does happen.