StringUtil::starts_with( string $string, string $starts_with, bool $case_sensitive = true )
Checks to see whether or not a string starts with another.
Description Description
Parameters Parameters
- $string
-
(Required) The string we want to check.
- $starts_with
-
(Required) The string we're looking for at the start of $string.
- $case_sensitive
-
(Optional) Indicates whether the comparison should be case-sensitive.
Default value: true
Return Return
(bool) True if the $string starts with $starts_with, false otherwise.
Source Source
File: src/Utilities/StringUtil.php