<?php
$array = [
['ABC' => 1],
['ADC' => 2],
['AXC' => 15],
['XAC' => 15]
];
// primeiro flatten
$flatted[$key] = $value;
});
// segundo flatten
PD9waHAKCiRhcnJheSA9IFsKICAgIFsnQUJDJyA9PiAxXSwKICAgIFsnQURDJyA9PiAyXSwKICAgIFsnQVhDJyA9PiAxNV0sCiAgICBbJ1hBQycgPT4gMTVdCl07CgovLyBwcmltZWlybyBmbGF0dGVuCgphcnJheV93YWxrX3JlY3Vyc2l2ZSgkYXJyYXksIGZ1bmN0aW9uICgkdmFsdWUsICRrZXkpIHVzZSAoJiRmbGF0dGVkKSB7CiAgICAkZmxhdHRlZFska2V5XSA9ICR2YWx1ZTsKfSk7Cgp2YXJfZHVtcCgkZmxhdHRlZCk7CgovLyBzZWd1bmRvIGZsYXR0ZW4gCnZhcl9kdW1wKGFycmF5X21lcmdlKC4uLiRhcnJheSkpOwoK