Palzin Track
Get 15% off with code PTRACKSIGNUP15 

Laravel Diary Logo

Laravel String Helper Function: contains

Learn how to use the contains helper method in PHP to check if a given value contains any of the specified needles. The contains method returns true if any needles are found in the haystack, otherwise it returns false. Find out how you can easily call this method using the str_contains function, a shortcut to Str::contains.