Adjust the addToArray php functions to be aware of PHP 5.4 array syntax