SplFixedArray::offsetExists

(PHP 5 >= 5.3.0, PHP 7) Returns whether the requested index exists public bool SplFixedArray::offsetExists ( int $index ) Checks whether the requested index index exists. Parameters: index The index being checked. Returns: TRUE if the requested index exists, otherwise FALSE

SplFixedArray::next

(PHP 5 >= 5.3.0, PHP 7) Move to next entry public void SplFixedArray::next ( void ) Move the iterator to the next array entry. Returns: No value is returned.

SplFixedArray::key

(PHP 5 >= 5.3.0, PHP 7) Return current array index public int SplFixedArray::key ( void ) Returns the current array index. Returns: The current array index.

SplFixedArray::getSize

(PHP 5 >= 5.3.0, PHP 7) Gets the size of the array public int SplFixedArray::getSize ( void ) Gets the size of the array. Returns: Returns the size of the array, as an integer. Notes: This method is functionally equivalent to SplFixedArray::count() Examples: SplFixedArray::getSize() example

SplFixedArray::fromArray

(PHP 5 >= 5.3.0, PHP 7) Import a PHP array in a SplFixedArray instance public static SplFixedArray SplFixedArray::fromArray ( array $array [, bool $save_indexes = true ] ) Import the PHP array array in a new SplFixedArray instance Parameters: array The array to import. save_indexes Try to save the numeric indexes used in the origina

SplFixedArray::current

(PHP 5 >= 5.3.0, PHP 7) Return current array entry public mixed SplFixedArray::current ( void ) Get the current array element. Returns: The current element value. Exception: Throws RuntimeException when the internal array pointer points to an invalid index or is out of bounds.

SplFixedArray::count

(PHP 5 >= 5.3.0, PHP 7) Returns the size of the array public int SplFixedArray::count ( void ) Returns the size of the array. Returns: Returns the size of the array. Notes: This method is functionally equivalent to SplFixedArray::getSize(). The count of elements is always equal to the set size because all values are initi

SplFixedArray::__construct

(PHP 5 >= 5.3.0, PHP 7) Constructs a new fixed array public SplFixedArray::__construct ([ int $size = 0 ] ) Initializes a fixed array with a number of NULL values equal to size. Parameters: size The size of the fixed array. This expects a number between 0 and PHP_INT_MAX. Returns: No value is returned. Exception: Throws Invali

SplPriorityQueue::valid

(PHP 5 >= 5.3.0, PHP 7) Check whether the queue contains more nodes public bool SplPriorityQueue::valid ( void ) Checks if the queue contains any more nodes. Returns: Returns TRUE if the queue contains any more nodes, FALSE otherwise.

SplPriorityQueue::top

(PHP 5 >= 5.3.0, PHP 7) Peeks at the node from the top of the queue public mixed SplPriorityQueue::top ( void ) Returns: The value or priority (or both) of the top node, depending on the extract flag.