Simple PHP text manipulation library