Validation class provide isStartWith function
Validation
isStartWith
Validation::isStartWith("text", ["list", "of", "words"])
echo Validation::isStartWith("ammarFromEgypt", ["yousef", "yahya"]) // false echo Validation::isStartWith("ammarFromEgypt", ["ammar", "yousef"]) // true
Last updated 2 months ago