Seeing that iPhones don't have a "memory card"... they have flash memory built onto the mother board. The best way to completely wipe your iDevice is to connect to a fully updated version of iTunes and restore it as a new device. That'll pretty well set it back to out of the box specs w/ no personal info left on the iDevice.