Thursday, April 03, 2008

Microsoft is weird!

seriously. everyone who has programmed in a real programming language knows that numerically-idexed arrays begin at index 0 (sorry, Basic fanboys). however if you're using the Microsoft SQL Server 2005 driver for PHP and you use sqlsrv_fetch_array() with SQLSRV_FETCH_NUMERIC, the array is indexed starting from 1! it's quite easy to miss this - i know i did. all the same, it's great to see Microsoft being so 'benevolent'. Don't tell me: it's just a ploy to migrate Windows developers to SQL Server!

Blogged with the Flock Browser

No comments: