Reference

Guide

Str::startsWith()

Checks if a string starts with the passed needle

Str::startsWith(string $string, string $needle, bool $caseInsensitive = false): bool

Parameters

Name Type Default Description
$string string
$needle string
$caseInsensitive bool false

Return type

bool

Source code

kirby/src/Toolkit/Str.php#L851