← All topics

#dsa

Lesson

intermediate3 min read

Stacks in PHP: Brackets, RPN, and the Monotonic Stack

A stack is last in, first out (LIFO). In PHP you don't need a class for one, because a plain array already works as a stack. This lesson covers the basic stack template and the monotonic stack,…

Get new briefs by email

Short alerts when a PHP or WordPress vulnerability needs action.

Double opt-in via Buttondown; unsubscribe any time. See our privacy policy.