Can you explain how the following garden solar light circuit works?
The "4 pin transistor" is an integrated circuit such as the QX5251, which combines battery charging, light sensing, and voltage boost circuitry in a single package.