Php Change Array Key Value Javascript Formatter