array_slice() 函数在数组中根据条件取出一段值,并返回。

参考:https://www.w3school.com.cn/php/func_array_slice.asp