So I have an array which shows which levels are allowed to do things.
allowed = ["user", "admin"]
There's another array that shows which groups a user belongs to.
groups = ["user", "crazy"]
What's the best way to search the allowed array for ANY of the groups a user belongs to? I know it's easy but I'm drawing a real blank here...
Just &:
allowed & groups
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With