isStartWith

Validation class provide isStartWith function

Syntax

Validation::isStartWith("text", ["list", "of", "words"])

Example

echo Validation::isStartWith("ammarFromEgypt", ["yousef", "yahya"]) // false
echo Validation::isStartWith("ammarFromEgypt", ["ammar", "yousef"]) // true

Last updated