Isn't the queue first in first out?
大写字母H
大写字母H 2017-06-06 23:52:00
0
5
2473

Why is it last in first out on the teacher's side?

大写字母H
大写字母H

迷茫

reply all(3)
太山遍雨河润千里

It seems to be a two-way queue

Peter_Zhu

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.


  • reply Teacher Zhu, the video of this course is very good. I hope php.cn can provide some courses on practical projects and redis high concurrency.
    phpcn_u46495 author 2017-11-02 12:26:56
左手右手慢动作

The queue operates asynchronously and is based on logic

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template