Tidy the arrays up to inline
PHP string standards for variable use

Also, is there any point in wrapping the $value variable into a string on line 99?
More PHP string fixes

Also line 229, any reason for swapping back and forth between ' and " ?
Using strtolower makes a cleaner method
Merge pull request #9 from cblair91/patch-2

General cleanup and PHP standards