Replaces [] with array() for compatibility with php5.3

Hi,

I've been trying to use your library on a PHP 5.3 system and I was getting syntax errors due to the use of PHP 5.4 only [] to create arrays. I've changed all occurrences I could find to use the old-style array() syntax which now works for me.

I'm guessing you didn't intentionally exclude PHP 5.3 users and hope that this patch will be useful to you and other users of your library.