The MPS2222 is manufactured in a plastic TO-92 case. When looking at the flat side with the leads pointed downward, the three leads emerging from the transistor are, from left to right, the emitter, base, and collector leads. Here is an image showing the pin diagram of this transistor.
Complementary PNP transistor
The complementary PNP transistor to the MPS2222 is the MPS2907.
SMD Version of MPS2222 transistor
The FMMT2222 (SOT-23), FMMT2222R (SOT-23), KN2222S (SOT-23), KTN2222S (SOT-23), KTN2222U (SOT-323), MMBT2222 (SOT-23), PMBT2222 (SOT-23) and PMST2222 (SOT-23) is the SMD version of the MPS2222 transistor. These transistors are of the same type, have similar parameters and are designed for surface mounting.