DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
php flatten multidimensional array
<?php $notFlat = [[1,2],[3,4]]; $flat = array_merge(...$notFlat); var_dump($flat);
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#php
#flatten
#multidimensional
#array
ADD COMMENT
Topic
COMMENT
Name
9+3 =
Submit