我知道如何通过以下方式将其插入到最后:
$arr[] = $item;
但是如何将它插入到开头呢?
php arrays
如何在不更改PHP中的数组键值的情况下将元素添加到数组的开头?
arrays ×2
php ×2