Ds\Stack::clearRemoves all values Descriptionpublic void Ds\Stack::clear()
Removes all values from the stack. ParametersThis function has no parameters. Return ValuesNo value is returned. ExamplesExample #1 Ds\Stack::clear example
The above example will output something similar to: Ds\Stack Object ( [0] => 3 [1] => 2 [2] => 1 ) Ds\Stack Object ( ) |