Php Extend The Array With Another Arraylist Length In Java