我有一个像这样构建的数组:
$acids = array();
foreach ($sortedArray as $h)
{
$acids[] = $h['account_id'];
}
$uniqueAids = array_unique($acids);
然后,当我运行该数组以输出它时,我希望这样:
Array
(
[0] => 353
[1] => 176
[2] => 9
)
但我明白了:
Array
(
[0] => 353
[1] => 176
[4] => 9
)