Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[5.8] adds Str::containsAll() method #28806
As discussed here #28688 and #28695 - in order to avoid a breaking change, I abstracted it into a new method called
Every now and then I run into a dilemma where I want to check if an array of values is contained within a string.
This adds the functionality to check for all array values inside a string.
Check out the tests to see all the supported scenarios.
I hope you guys find this useful, too