Does anyone have any examples or know of any resources that show how to implement set theory operations in pure php?
+1
A:
Which operations are you looking for? What are you trying to accomplish?
In PHP an array is (imperfectly) analogous to a set, and PHP has array_intersect
, array_merge
(union), and array_diff
(complement) functions built in. There's also array_uintersect
and array_udiff
for handling complex objects whose comparisons are not so straightforward.
Is there further functionality you need?
Jordan
2010-08-17 02:26:32
+1
A:
Probably you'll already saw those links:
DaNieL
2010-08-17 02:27:28