Skip to content

anglesoft/linked

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ–‡ Linked

Linked List implementation in PHP.

Installation

composer require angle/linked

Usage

Creating an empty list and appending items.

$list = new Angle\Linked\Linked;
$list->append('PHP');
$list->append('Ruby');
$list->append('Javascript');

print $list->head->next->next->data; // Javascript

Prepend elements to the list:

$list->prepend('Golang');

print $list->head->data; // Golang

Print the list:

print $list; // Golang, PHP, Ruby, Javascript

Contributing

Improvements are welcome! Feel free to submit pull requests.

Licence

MIT

Copyright Β© 2019 Angle Software

About

πŸ–‡ Linked List implementation in PHP.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages