STR_STARTS_WITH
Checks if a string starts with a given substring
SYNTAX
str_starts_with ( string $haystack , string $needle ) : bool
PARAMETERS
haystack
The string to search in.
needle
The substring to search for in the haystack.
RETURN
Returns TRUE if haystack begins with needle, FALSE otherwise.
EXAMPLES
1
2
3