convert array to accepted syntax for 5.3.10 php version