find string in text in laravel
@if (str_contains($mystring, 'SIZE'))
4.5
2
use Illuminate\Support\Str;
$myString = 'This is from itsolutionstuff.com website.';
$contains = Str::contains($myString, 'itsolutionstuff.com'); // true
Thank you!
2
0
Are there any code examples left?
New code examples in category PHP