Arrays are a very popular data type in PHP because they make it easy to associate key names or numbers with the respective values.
They also allow to nest information by storing arrays as key values.
This package can inspect nested arrays and perform several types useful operations like checking if all the stored values is of the same type, compute an unique value from all the array values that can be used as a signature of the array, determine if the array can be used as a table with rows and columns.
The package Array Depth is one of the few PHP packages that was considered notable recently because it does something that is worth paying attention.
The basic purpose is: Traverse arrays in depth to perform useful actions
Here follows in more detail what it does:
This class can traverse arrays in depth to perform useful actions. Currently it can:
- Determine the depth of a nested array
- Retrieve all data types used in an array
- Determine whether or not an array is homogeneous
- Compute the signature of an array
- Determine whether or not an array is suitable for the process of selection of rows and columns
Notable PHP packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.
If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package.