Ds\Stack::push

Pushes values onto the stack

&reftitle.description; public `void` `Ds\Stack::push` `mixed` `values`

Pushes `values` onto the stack.

&reftitle.parameters;

`values`

- The values to push onto the stack.

&reftitle.returnvalues;

&return.void;

&reftitle.examples;

### `Ds\Stack::push` example

    <?php
    $stack = new \Ds\Stack();

    $stack->push("a");
    $stack->push("b");
    $stack->push("c", "d");
    $stack->push(...["e", "f"]);

    print_r($stack);
    ?>

&example.outputs.similar;

    Ds\Stack Object
    (
        [0] => a
        [1] => b
        [2] => c
        [3] => d
        [4] => e
        [5] => f
    )