An extension providing specialized data structures as efficient alternatives to the PHP array. Highlights the API, performance and other benefits. PHP has one data structure to rule them all. The array is a complex, flexible, master-of-none, hybrid data structure, combining the behaviour of a list and a linked map. But we use it for everything, because PHP is pragmatic: “dealing with things sensibly and realistically in a way that is based on practical rather than theoretical considerations”. An array gets the job done. Unfortunately, with flexibility comes complexity. Collection is the base interface which covers common functionality like foreach, echo, count, print_r, var_dump, serialize, json_encode, and clone. Sequence describes the behavior of values arranged in a single, linear dimension. Some languages refer to this as a List. Documentation is available on php.net. You should also include the polyfill in your project for IDE integration.

Features

  • The easiest way to install the extension is to use PECL
  • You can also enable the extension temporarily using the command line
  • There is a suite of PHPUnit tests that can be installed using Composer
  • You may include the polyfill as a dependency in your project
  • An extension providing specialized data structures as efficient alternatives to the PHP array
  • You should also include the polyfill in your project for IDE integration

Project Samples

Project Activity

See All Activity >

Categories

Data Formats

License

MIT License

Follow Data Structures for PHP 7

Data Structures for PHP 7 Web Site

Other Useful Business Software
Desktop and Mobile Device Management Software Icon
Desktop and Mobile Device Management Software

It's a modern take on desktop management that can be scaled as per organizational needs.

Desktop Central is a unified endpoint management (UEM) solution that helps in managing servers, laptops, desktops, smartphones, and tablets from a central location.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Data Structures for PHP 7!

Additional Project Details

Operating Systems

Windows

Programming Language

C

Related Categories

C Data Formats Software

Registered

2022-06-22