How does EXT_texture_env_combine work?

Anyone know of an examples for how GL_COMBINE_EXT works or could offer an explaination of the theory behind it.

Thanks,
e