Ds\Stack::toArrayConverts the stack to an array. Description
public array Ds\Stack::toArray
( void
)
Converts the stack to an array.
ParametersThis function has no parameters. Return ValuesAn array containing all the values in the same order as the stack. ExamplesExample #1 Ds\Stack::toArray example
<?phpThe above example will output something similar to:
array(3) {
[0]=>
int(3)
[1]=>
int(2)
[2]=>
int(1)
}
|