Ds\Stack::toArrayConverts the stack to an array Descriptionpublic array Ds\Stack::toArray()
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
The above example will output something similar to: array(3) { [0]=> int(3) [1]=> int(2) [2]=> int(1) } |