This class is made by unreal4u (Camilo Sperberg). http://unreal4u.com/
- 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)
This package is a collection of functions related to array manipulation.
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 usage
- Search for more loose functions spattered around my codebase
- 0.1:
- Created class
- Twitter: @unreal4u
- Website: http://unreal4u.com/
- Github: http://www.github.com/unreal4u