convert php 54 array format to old format