holy crap
That was freaking amazing at describing it. I don't know php, but i know some rudimentary C, and that was easy for even me to follow. I'm not going to become the next great php programmer, but still.
Great job!
It's on my favorites should I ever want to really get into php.