If "f " is put at the last so it should be on the top of the stack not at the bottom.
(PECL ds >= 1.0.0)
Ds\Stack::push — Pushes values onto the stack.
values
The values to push onto the stack.
값을 반환하지 않습니다.
Example #1 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);
?>
위 예제의 출력 예시:
Ds\Stack Object ( [0] => a [1] => b [2] => c [3] => d [4] => e [5] => f )
If "f " is put at the last so it should be on the top of the stack not at the bottom.