As was said before, the push () and pop () methods on a SplQueue object, its behave like a stack rather than a queue.
Knowing that the enqueue () and dequeue () methods are respectively aliases of push () and shift () methods, we can also use SplQueue :: push () and SplQueue :: shift () for the same purpose as SplQueue :: enqueue and SplQueue :: dequeue.