Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/unreal4u/arrayoperations
Playground to learn about Iterators and SPL functions related to arrays
https://github.com/unreal4u/arrayoperations
Last synced: about 2 months ago
JSON representation
Playground to learn about Iterators and SPL functions related to arrays
- Host: GitHub
- URL: https://github.com/unreal4u/arrayoperations
- Owner: unreal4u
- Created: 2013-09-18T17:58:36.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-10-02T08:42:45.000Z (over 11 years ago)
- Last Synced: 2024-10-12T05:09:23.440Z (3 months ago)
- Language: PHP
- Size: 117 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
arrayOperations.class.php
======Credits
--------This class is made by unreal4u (Camilo Sperberg). [http://unreal4u.com/](unreal4u.com)
About this class
--------* Originally conceived to be a receiver of all loose array-related functions that I've made throughout the years
* Later also a playground to learn about Iterators and SPL functions (related to arrays)Detailed description
---------This package is a collection of functions related to array manipulation.
Basic usage
----------include('arrayOperations.class.php');
$arrayOperations = new arrayOperations();
$result = $arrayOperations->getNextAndPrevious(11, array(1, 3, 5, 6, 8, 11));* Congratulations! The returned array will look very similar to this:
array (size=3)
'prev' => int 8
'next' => boolean false
'curr' => int 11
* Please see examples and PHPUnit tests for more options and advanced usagePending
---------
* Search for more loose functions spattered around my codebaseVersion History
----------* 0.1:
* Created classContact the author
-------* Twitter: [@unreal4u](http://twitter.com/unreal4u)
* Website: [http://unreal4u.com/](http://unreal4u.com/)
* Github: [http://www.github.com/unreal4u](http://www.github.com/unreal4u)