While Loop Array Php Push Into Array Javascript Mdn