- array_multisort: documentation ( source)
- print_r: documentation ( source)
<?php
$sort = array();
//並び替え
$matome = array(1 =>ACa,2 =>Baa ,3 =>Aaa );
foreach((array) $matome as $key => $value) {
$sort[$key] = $value;
}
array_multisort($sort , SORT_ASC, SORT_STRING | SORT_FLAG_CASE, $matome);
print_r($matome);