Plinq is a native implementation of language-integrated query (LINQ) for PHP (v >= 5.3.1) .
The class goes over arrays and performs several predefined operations.
There is no need for "magic strings" (that are evaluated to PHP and must be in some form of special notation) like in other solutions.
Here are some key features of "Plinq":
· Retrieve all elements
· Retrieve elements based on a filter
· Compute the maximum, minimum and average of element values
· Order/sort elements
· Concatenate elements
· Match array elements that satisfy given conditions
· Skip a number of elements
· Retrieve the first elements (preset number)
· Retrieve the last elements (preset number)
· Intersect elements
· Group elements
· Compare elements and return the differences
· Transform to array
Requirements:
· PHP 5.3.1 or higher
Limitations:
· Plinq depends on knowledge of "closures."
What's New in This Release: [ read full changelog ]
· First stable, production ready release.