FixedArray
class FixedArray implements ArrayAccess, IteratorAggregate
Class FixedArray fixed size array implements, and support string key.
SplFixedArray
only allow int key.
Properties
protected array | $keys | ||
protected SplFixedArray | $values |
Methods
FixedArray constructor.
reset
No description
No description
No description
No description
No description
No description
No description
No description
Defined by IteratorAggregate interface Returns an iterator for this object, for use with foreach
Checks whether an offset exists in the iterator.
Gets an offset in the iterator.
Sets an offset in the iterator.
Unset an offset in the iterator.
Details
at line 36
__construct(int $size = 0)
FixedArray constructor.
at line 46
reset(int $size = 0)
reset
at line 56
bool
__isset(string $key)
at line 65
__set(string $key, mixed $value)
at line 74
mixed
__get(string $key)
at line 82
int
getSize()
at line 91
int
getKeyIndex($key)
at line 99
array
getKeys()
at line 107
setKeys(array $keys)
at line 115
SplFixedArray
getValues()
at line 123
setValues(SplFixedArray $values)
at line 133
SplFixedArray
getIterator()
Defined by IteratorAggregate interface Returns an iterator for this object, for use with foreach
at line 143
boolean
offsetExists(mixed $offset)
Checks whether an offset exists in the iterator.
at line 153
mixed
offsetGet(mixed $offset)
Gets an offset in the iterator.
at line 170
void
offsetSet(mixed $offset, mixed $value)
Sets an offset in the iterator.
at line 186
void
offsetUnset(mixed $offset)
Unset an offset in the iterator.