find string in text in laravel

30

find string in text in laravel -

@if (str_contains($mystring, 'SIZE'))

find string in text in laravel -

use Illuminate\Support\Str;  
$myString = 'This is from itsolutionstuff.com website.';  
$contains = Str::contains($myString, 'itsolutionstuff.com');     // true

Comments

Submit
0 Comments