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