SplFixedArray::offsetUnset

(PHP 5 >= 5.3.0, PHP 7) Unsets the value at the specified $index public void SplFixedArray::offsetUnset ( int $index ) Unsets the value at the specified index. Parameters: index The index being unset. Returns: No value is returned. Exception: Throws RuntimeException when index is outside the defined size of t

SplFixedArray::offsetGet

(PHP 5 >= 5.3.0, PHP 7) Returns the value at the specified index public mixed SplFixedArray::offsetGet ( int $index ) Returns the value at the index index. Parameters: index The index with the value. Returns: The value at the specified index. Exception: Throws RuntimeException when index is outside the defined

SplFixedArray::rewind

(PHP 5 >= 5.3.0, PHP 7) Rewind iterator back to the start public void SplFixedArray::rewind ( void ) Rewinds the iterator to the beginning. Returns: No value is returned.

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.

SplPriorityQueue::setExtractFlags

(PHP 5 >= 5.3.0, PHP 7) Sets the mode of extraction public void SplPriorityQueue::setExtractFlags ( int $flags ) Parameters: flags Defines what is extracted by SplPriorityQueue::current(), SplPriorityQueue::top() and SplPriorityQueue::extract(). SplPriorityQueue::EXTR_DATA (0x00000001): Extract the data SplPriorityQueue::EXTR_PRIORITY (0x00000002): Extract the priority

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::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::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::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::__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