php flatten multidimensional array

Solutions on MaxInterview for php flatten multidimensional array by the best coders in the world

showing results for - "php flatten multidimensional array"
Giulia
14 Jan 2019
1<?php
2
3$notFlat = [[1,2],[3,4]];
4$flat = array_merge(...$notFlat);
5var_dump($flat);
6