Php Delete Item From Array Js Mdn For Loop