replace unset with array_pop
unset does not reset the Array's internal pointer which messes up later calls. array_pop is still much faster than array_splice
Loading
Please register or sign in to comment
unset does not reset the Array's internal pointer which messes up later calls. array_pop is still much faster than array_splice