Php Foreach Get Array Key Javascript W3schools