���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
repositories
/
cutunix
/
vendor
/
mossadal
/
math-parser
/
src
/
MathParser
/
Parsing
/
Viewing: Stack.php
<?php /* * @package Parsing * @author Frank Wikström <frank@mossadal.se> * @copyright 2015 Frank Wikström * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * */ namespace MathParser\Parsing; /** * Utility class, implementing a simple FIFO stack */ class Stack { /** mixed[] $data internal storage of data on the stack. */ protected $data = array(); /** * Push an element onto the stack. * @param mixed $element */ public function push($element) { $this->data[] = $element; } /** * Return the top element (without popping it) * @retval mixed */ public function peek() { return end($this->data); } /** * Return the top element and remove it from the stack. * @retval mixed */ public function pop() { return array_pop($this->data); } /** * Return the current number of elements in the stack. * @retval int */ public function count() { return count($this->data); } /** * Returns true if the stack is empty * * @retval boolean **/ public function isEmpty() { return $this->count() == 0; } public function __toString() { return implode(' ; ', $this->data); } }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa