Dictionary implements IteratorAggregate, ArrayAccess, Countable
AbstractYes
Table of Contents
Interfaces
- IteratorAggregate
- ArrayAccess
- Countable
Methods
- __construct() : mixed
- Creates object.
- clear() : mixed
- containsKey() : mixed
- count() : int
- Count elements of an object
- get() : null
- Returns item by it`s value (key). Keys MAY NOT be numeric, so it is NOT an order-correct query
- getClass() : mixed
- getIterator() : Traversable
- getKeys() : mixed
- isA() : mixed
- isEmpty() : bool
- Returns true if the dictionary is empty.
- offsetExists() : bool
- Whether a offset exists
- offsetGet() : mixed
- Returns instance field. If none was loaded before, upload it.
- offsetSet() : void
- Offset to set
- offsetUnset() : void
- Offset to unset
- set() : mixed
- toArray() : array<string|int, mixed>
- Returns the values as an array.
Methods
__construct()
Creates object.
public
__construct([array<string|int, mixed> $values = null ]) : mixed
Parameters
- $values : array<string|int, mixed> = null
clear()
public
clear() : mixed
containsKey()
public
containsKey(mixed $key) : mixed
Parameters
- $key : mixed
count()
Count elements of an object
public
count() : int
Return values
intget()
Returns item by it`s value (key). Keys MAY NOT be numeric, so it is NOT an order-correct query
public
get(mixed $name) : null
Parameters
- $name : mixed
Return values
nullgetClass()
public
static getClass() : mixed
getIterator()
public
getIterator() : Traversable
Return values
TraversablegetKeys()
public
getKeys() : mixed
isA()
public
static isA(mixed $object) : mixed
Parameters
- $object : mixed
isEmpty()
Returns true if the dictionary is empty.
public
isEmpty() : bool
Return values
booloffsetExists()
Whether a offset exists
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Return values
booloffsetGet()
Returns instance field. If none was loaded before, upload it.
public
offsetGet(string $offset) : mixed
Parameters
- $offset : string
Attributes
- #[ReturnTypeWillChange]
offsetSet()
Offset to set
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
offsetUnset()
Offset to unset
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
set()
public
set(array<string|int, mixed> $values) : mixed
Parameters
- $values : array<string|int, mixed>
toArray()
Returns the values as an array.
public
toArray() : array<string|int, mixed>