我正在尝试按字母顺序对字符串进行排序.我以为我可以将一个字符串分解为一个数组并对其进行排序,但是回声没有返回任何内容.
$schools = "high*low*other*"; $schools = explode("*", $schools); $schools = sort($schools); echo $schools[0];
php sorting explode
explode ×1
php ×1
sorting ×1