| Viewed 353 times

How to check if the given string contains all array values in laravel


How to check if the given string contains all array values in laravel

Loading...
1 Answer
Mohammad Qandeel
Answered
0

You can use the Str::containsAll() helper function to check if the given string contains all array values in laravel

For Laravel developers, you can determine if the given string contains all array values smoothly.

If you want to check if the given string contains all array values in laravel you can use the Str::containsAll() helper function which will return a string.

Example of how to use Str::containsAll() helper function

use Illuminate\Support\Str;

$slice = Str::containsAll('Qandeel Academy com', ['Qandeel', 'net']);

Output

=> false



Related FAQ