PHP Data Structures.

A comprehensive collection of data structures implemented in PHP. This library includes implementations of linked lists, binary search trees, queues, stacks, and more, all designed with clean and readable code.
Included Data Structures
- Linked List
- Binary Search Tree
- Queue
- Stack
- Heap
- Hash Table
- Graph
Example: Binary Search Tree
// Create a new BST
$bst = new BinarySearchTree();
// Add some values
$bst->insert(10);
$bst->insert(5);
$bst->insert(15);
$bst->insert(2);
$bst->insert(7);
// Check if a value exists
echo $bst->contains(7) ? "Found 7!" : "7 not found";
// Print the tree in order
$bst->printInOrder(); // Outputs: 2 5 7 10 15