Parle Parle\Stack 클래스
(PECL parle >= 0.7.0)
소개
Parle\Stack은 LIFO 스택입니다. 요소는 한쪽 끝에서만 삽입 및 제거됩니다.
클래스 개요
class Parle\Stack {
/* Properties */
public bool $empty = true;
public int $size = 0;
public mixed $top;
/* Methods */
public pop(): void
public push(mixed $item): void
}
Properties
- empty
- 스택이 비어 있는지 여부, 읽기 전용입니다.
- size
- 스택 크기, 읽기 전용.
- top
- 스택 맨 위에 있는 요소입니다.
목차
- Parle\Stack::pop — Pop an item from the stack
- Parle\Stack::push — Push an item into the stack