Download the PHP package faheem2407/play-with-array without Composer
On this page you can find all versions of the php package faheem2407/play-with-array. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download faheem2407/play-with-array
More information about faheem2407/play-with-array
Files in faheem2407/play-with-array
Download faheem2407/play-with-array
More information about faheem2407/play-with-array
Files in faheem2407/play-with-array
Vendor faheem2407
Package play-with-array
Short Description This is basic array manipulation package
License MIT
Package play-with-array
Short Description This is basic array manipulation package
License MIT
Please rate this library. Is it a good library?
Informations about the package play-with-array
Basic Array Manipulation
How to use this package:
- create a fresh laravel project or inside your existing project just require this : composer require faheem2407/play-with-array
- create an object of class ArrayHelper like this: $object = new ArrayHelper([43,21,5,8,92,56]);//here you must have to pass an array.
-
call searchPosition function to get the position of that number if present in the array if not present it will also show an user-friendly message.Use like this: echo $object->searchPosition(23); output: (1). 23 is not present in this array. (2). 8 is found at position 4.
- call sortArray function to make the passing array sorted. like this: print_r($object->sortArray()); output: { [0]=>5, [1]=>8, [2]=>21, [3]=>43, [4]=>56, [5]=>92 }
All versions of play-with-array with dependencies
PHP Build Version
Package Version
No informations.
The package faheem2407/play-with-array contains the following files
Loading the files please wait ...