SplStack
extends SplStack
in package
implements
Serializable
Serializable version of SplStack
Tags
Table of Contents
Interfaces
- Serializable
Methods
- __serialize() : array<int, TValue>
- Magic method used for serializing of an instance.
- __unserialize() : void
- Magic method used to rebuild an instance.
- serialize() : string
- Serialize
- toArray() : array<int, TValue>
- Serialize to an array representing the stack
- unserialize() : void
- Unserialize
Methods
__serialize()
Magic method used for serializing of an instance.
public
__serialize() : array<int, TValue>
Attributes
Return values
array<int, TValue>__unserialize()
Magic method used to rebuild an instance.
public
__unserialize(array<string|int, TValue> $data) : void
Parameters
- $data : array<string|int, TValue>
-
Data array.
Attributes
serialize()
Serialize
public
serialize() : string
Attributes
Return values
stringtoArray()
Serialize to an array representing the stack
public
toArray() : array<int, TValue>
Return values
array<int, TValue>unserialize()
Unserialize
public
unserialize(string $data) : void
Parameters
- $data : string