HH\Lib\Str\starts_with_ci
Returns whether the string starts with the given prefix (case-insensitive)
namespace HH\Lib\Str;
function starts_with_ci(
string $string,
string $prefix,
): bool;
For a case-sensitive check, see Str\starts_with()
.
Guide
Parameters
string $string
string $prefix
Returns
bool