Why is it last in first out on the teacher's side?
天蓬老师2017-06-07 09:21:16
The queue is first in, first out. You are right, but that is an operation performed at the head and tail of the array at the same time.
PHP uses a stack method to simulate team operations, which are all performed at one end. Some methods are shared, so don’t be too entangled, as long as the same function is completed. Of course, you can also change it to the second end, depending on the needs of the project.
However, from the question you asked, it can be seen that you are studying seriously. Thank you very much for asking this question.