小编Sou*_*han的帖子

如何使用PHP对数组进行排序,忽略文章(a,an,the)?

假设我有以下数组$books(实际数组要大得多):

Array
(
    [0] => The Mystic Masseur
    [1] => The Suffrage of Elvira
    [2] => Miguel Street
    [3] => A House for Mr Biswas
    [4] => Mr Stone and the Knights Companion
    [5] => The Mimic Men
    [6] => A Flag on the Island
    [7] => In a Free State
    [8] => Guerrillas
    [9] => A Bend in the River
    [10] => The Enigma of Arrival
    [11] => A Way in the World
    [12] => Half a …
Run Code Online (Sandbox Code Playgroud)

php arrays sorting

8
推荐指数
2
解决办法
1411
查看次数

标签 统计

arrays ×1

php ×1

sorting ×1