working with Arrays in PHP is a PITA. For non-object-arrays there's a ton of functions, inconsistently named and parametrized. There is ArrayObject, but neither can it be used with the normal array functions, nor does it have many useful methods. A quick glance at JavaScript/ECMAScript tells us that its not impossible to have array objects with …
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
JsArrayObject.php
JsArrayObjectTest.php
README.md

README.md

Implements ECMAScript's Array methods in PHP.

The JsArrayObject class extends PHP's native Array.

TODO

  • old methods: slice, sort, splice, join...
  • better class name
  • phpdoc