I don't know of any SQL Server functions that will do that, but I am on a project now where I will have to deal with that soon. This is what I was thinking :
cycle through the results, assigning each record id# an array index#, and then have PHP return index # 0-9, 10-19, etc...
Either that or make a temp table to hold the results. Let me know if you find anything better/faster.