-1
我想这个排序按字母顺序排列。我很确定我的阵列我这儿过得在foreach循环 这里调用它是我的代码:排序静态数组PHP
private static $table_prefixes = [
'alio',
'dan_travel',
'goway_ca',
'goway_us',
'picasso',
'transam'
];
public $suppliers_overview = [];
public static function getTablePrefixes()
{
return self::$table_prefixes;
}
foreach (self::getTablePrefixes() as $prefix) {
$this->suppliers_overview[$prefix]['name'] =$prefix;
}
[PHP sort array()](http://stackoverflow.com/questions/9380106/php-sort-array)可能的重复 –