0

I just recently started looking at the asp.net and saw that objects can be mapped using the entity framework then the objects can be searched using linq to pull up specific records within a object/model.

Now is there an equivalent to linq in php? Something to search a object that has been filled say by PDO::Fetch_Class?

$mappedobj = $stmt->fetchALL(PDO::FETCH_CLASS, 'person');
// is there an easy way to search $mappedobj say by a person_id?
4

1 回答 1

0

结帐 phplinq 和 plinq(不是 dot net 中的并行 linq。请参考下面的链接)。它们具有与 linq 相同的功能。

PHPLIINQ:http ://phplinq.codeplex.com/ PLINQ:http ://plinq.codeplex.com/

于 2013-09-07T16:03:37.787 回答