[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/sodium_compat/src/PHP52/ -> SplFixedArray.php (summary)

(no description)

File Size: 189 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

SplFixedArray:: (16 methods):
  __construct()
  count()
  toArray()
  fromArray()
  getSize()
  setSize()
  offsetExists()
  offsetGet()
  offsetSet()
  offsetUnset()
  rewind()
  current()
  key()
  next()
  valid()
  __wakeup()


Class: SplFixedArray  - X-Ref

The SplFixedArray class provides the main functionalities of array. The
main differences between a SplFixedArray and a normal PHP array is that
the SplFixedArray is of fixed length and allows only integers within
the range as indexes. The advantage is that it allows a faster array
implementation.

__construct($size = 0)   X-Ref
SplFixedArray constructor.

param: int $size

count()   X-Ref

return: int

toArray()   X-Ref

return: array

fromArray(array $array, $save_indexes = true)   X-Ref

param: array $array
param: bool $save_indexes
return: SplFixedArray

getSize()   X-Ref

return: int

setSize($size)   X-Ref

param: int $size
return: bool

offsetExists($index)   X-Ref

param: string|int $index
return: bool

offsetGet($index)   X-Ref

param: string|int $index
return: mixed

offsetSet($index, $newval)   X-Ref

param: string|int $index
param: mixed $newval

offsetUnset($index)   X-Ref

param: string|int $index

rewind()   X-Ref
Rewind iterator back to the start

since: 5.3.0
return: void

current()   X-Ref
Return current array entry

since: 5.3.0
return: mixed The current element value.

key()   X-Ref
Return current array index

return: int The current array index.

next()   X-Ref

return: void

valid()   X-Ref
Check whether the array contains more elements

return: bool true if the array contains any more elements, false otherwise.

__wakeup()   X-Ref
Do nothing.




Generated: Sat Dec 7 01:00:02 2024 Cross-referenced by PHPXref 0.7.1