[ 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

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

getSize()   X-Ref

return: int

setSize($size)   X-Ref

return: bool
param: int $size

offsetExists($index)   X-Ref

return: bool
param: string|int $index

offsetGet($index)   X-Ref

return: mixed
param: string|int $index

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

return: void
since: 5.3.0

current()   X-Ref
Return current array entry

return: mixed The current element value.
since: 5.3.0

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: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1