假设我有以下数组$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)