The answer to 'difference between P-trap' is that a P-trap and S-trap are two common types of plumbing traps used to prevent sewer gases from entering the home. The main difference is the shape of the trap.
A P-trap has a U-shaped bend that forms a water seal to block odors, while an S-trap has an S-shaped bend. P-traps are more commonly used under sinks, tubs, and showers, as they are less prone to siphoning and are easier to access for cleaning. S-traps are sometimes used for floor drains but are more prone to siphoning and can be more difficult to maintain.