11 December 2005
C# 3.0 with LINQ Followup
My first night’s coding with LINQ for PHP is complete. It’s not perfect, and still has major scoping issues, but has basic SQL-like functionality.
What’s missing?
- There’s no way to preform a join on the source arrays. What’s more, is the name for the source array is discarded internally.
- We don’t support logical operators in the “where” clause of queries.
I haven’t tested the code with scalars (integers, strings, etc) but don’t think it will work.
This following is actual functional code as of this moment. The rest will be released later, but is still buggy, and until licensing is anaylized on the C# side and my source is licensed, the whole of the code will remain private.
function getCarsOfYear ($intYear) {
$dataset = $this->getAllCars();
return linq::execute ("from car in dataset where car.intYear = $intYear select car", $dataset);
}

