php - Convert array of single-element arrays to one a dimensional array - Stack Overflow

PHOTO EMBED

Tue Sep 21 2021 15:18:57 GMT+0000 (Coordinated Universal Time)

Saved by @mvieira #php

$values = array(array(88868), array(88867), array(88869), array(88870));
foreach ($values as &$value) $value = $value[0];
content_copyCOPY

https://stackoverflow.com/questions/8754980/convert-array-of-single-element-arrays-to-one-a-dimensional-array