duoshuo / php-cassandra

php Cassandra driver which support Protocol v3 (Cassandra 2.1) and asynchronous requests
MIT License
153 stars 53 forks source link

Make it possible to iterate over results with foreach #64

Closed DennisBirkholz closed 8 years ago

DennisBirkholz commented 8 years ago

Hi,

my change makes it possible to iterate over results with foreach($result AS $rowNo => $rowContent) { ... }

As this simplifies handling of results a lot I would be really glad if you accept the patch.

Thanks, Dennis