Question: how does pnp transistor work?
Answer: A PNP works in a same but opposite fashion. The base still controls current flow, but that current flows in the opposite direction -- from emitter to collector. Instead of electrons, the emitter emits "holes" (a conceptual absence of electrons) which are collected by the collector.