PHPackages                             tonix-tuft/linked-hash-map - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tonix-tuft/linked-hash-map

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tonix-tuft/linked-hash-map
==========================

How I would implement a linked hash map in PHP if PHP wouldn't have associative arrays.

v1.3.0(4y ago)210MITPHPPHP ^7.0

Since Jul 13Pushed 4y ago2 watchersCompare

[ Source](https://github.com/tonix-tuft/linked-hash-map)[ Packagist](https://packagist.org/packages/tonix-tuft/linked-hash-map)[ RSS](/packages/tonix-tuft-linked-hash-map/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (5)Versions (5)Used By (0)

linked-hash-map
===============

[](#linked-hash-map)

How I would implement a linked hash map in PHP if PHP wouldn't have associative arrays.

Installation
------------

[](#installation)

Using [Composer](https://getcomposer.org/):

```
composer require tonix-tuft/linked-hash-map

```

Usage
-----

[](#usage)

This map implements the [ArrayAccess](https://www.php.net/manual/en/class.arrayaccess.php) interface as well as the [Iterator](https://www.php.net/manual/en/class.iterator.php) and [Countable](https://www.php.net/manual/en/class.countable.php) interfaces and therefore can be used as a built-in PHP array:

```
