php5.4 version of array to php 5.3 version