Php Parse String Into Arraylist Length Function Javascript W3schools