Php Get Max Index Of Array In Js W3school