• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • SplPriorityQueue::count()

    (PHP 5 >= 5.3.0, PHP 7)

    Counts the number of elements in the queue

    说明

    publicSplPriorityQueue::count(void) : int

    参数

    此函数没有参数。

    返回值

    Returns the number of elements in the queue.

    After iteration, the queue will be empty. Therefore, `count()` will return 0. You can circumvent this by iterating over a clone, instead of the actual queue.
    https://stackoverflow.com/questions/27464012/splpriorityqueuenext-is-removing-the-item