function solution($str, $ending) {
    return str_ends_with($str, $ending);
}
Catégories : PHP