HH\Lib\Str\strip_prefix_l
Returns the string with the given prefix removed, or the string itself if it doesn't start with the prefix
namespace HH\Lib\Str;
function strip_prefix_l(
\HH\Lib\Locale\Locale $locale,
string $string,
string $prefix,
): string;
Strings will be normalized for comparison in encodings that support multiple representations, such as UTF-8.
Guide
Parameters
\HH\Lib\Locale\Locale $locale
string $string
string $prefix
Returns
string