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
GWI: On-demand Consumer Research Icon
GWI: On-demand Consumer Research

For marketing agencies and media organizations requiring a solution to get consumer insights

Need easy access to consumer insights? Our intuitive platform is the answer. Get the ultra-reliable research that brands and agencies need to stay ahead of changing consumer behavior.
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