Skip to content

quantk/SimpleStack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple php stack realization

Usage:

    $simpleStack = new SimpleStack();
    // Add some data
    $simpleStack->push("Some data");
    $simpleStack->push(42);
    
    // Getting data
    $lastData = $simpleStack->pop();
    
    // Get data without delete from stack
    $lastData = $simpleStack->peek();
    
    // Is stack empty?
    $isEmpty = $simpleStack->isEmpty();

About

PHP Simple stack realization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages