Chagne php 5.4 format array to 5.3