Implementation of set theory operations in php

How to implement set theory operations in pure php?

+6
php graph-theory rbac set-theory
source share
2 answers

What kind of surgery are you looking for? What are you trying to accomplish?

In PHP, an array is (imperfectly) similar to a set, and PHP has array_intersect , array_merge (union) and array_diff (addition) built-in functions. array_uintersect and array_udiff to handle complex objects, comparison is not so simple.

Are additional features needed?

+9
source share
+2
source share

All Articles