Java Insert Element Into Array Php Use For Loop