tags:

views:

56

answers:

1

It seems that PHP's streams aren't used much, but they appear to be very powerful. Does anyone have an example of implementing a stream to do something that would be clunky otherwise?

I don't mean doing stuff like file_get_contents('http://google.com');, I mean implementing your own streams.

+2  A: 

A couple of examples that spring immediately to mind are:

salathe