正文开始
$tagsArray_ = ['xx','大鸵鸟', '鸵鸟']; $compareFunc = function ($a, $b) { return strlen($b)-strlen($a); }; usort($tagsArray_, $compareFunc); print_r($tagsArray_);
正文结束