implode and assign to array php code example Example: php implode array $values = array_map('array_pop', $array); $imploded = implode(',', $values);