HH\Lib\Str\starts_with_ci
Requires the Hack Standard Library to be installed.
Facebook Engineer?
This function is available as Str\starts_with_ci()
in Facebook's www repository.
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()
.
Parameters
string $string
string $prefix
Returns
bool