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


Top ↑

Return Return

(bool) True if the $string starts with $starts_with, false otherwise.


Top ↑

Source Source

File: src/Utilities/StringUtil.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.