Very simple Linq for php